`getJavaElement(sym)` is very expensive: it will look up the symbol in *all* existing Java projects. If there is any way to hint at the project where `sym` is defined, it needs to be done. Otherwise this can take seconds.