`getJavaElement` is quite expensive, as it searches through the whole workspace. It's important to give as many hints as possible at this point, so if you expect this symbol to be found in the current project, then pass the project too.