answer that HelloPeople gave is working for me,
but If you have big project with so many sub projects than you can also do
cmd + shift + P
and Java: Clean Java Language Server Workspace
than restart Vs Code, and also make sure you have java extensions installed