void (@NotNull PsiJavaCodeReferenceElement reference) { if (shortClassName.equals(reference.getReferenceName()) && file.getManager().areElementsEquivalent(reference.resolve(), aClass)) { foundRef[0] = true; } super.visitReferenceElement(reference); }