void (@NotNull PsiElement element) { InjectedLanguageManager manager = InjectedLanguageManager.getInstance(myFile.getProject()); manager.enumerateEx(element, myFile, false, (injectedPsi, places) -> { if (InjectedLanguageJavaReferenceSupplier.containsPsiMemberReferences(injectedPsi.getLanguage().getID())) { injectedPsi.accept(REGISTER_REFERENCES_VISITOR); } }); }