void (@NotNull PsiJavaCodeReferenceElement reference) { super.visitReferenceElement(reference); if (!reference.isQualified()) { return; } final PsiElement target = reference.resolve(); if (!(target instanceof final PsiClass aClass)) { return; } String qualifiedName = aClass.getQualifiedName(); String referenceName = reference.getReferenceName(); if (qualifiedName == null || referenceName == null) { return; } referenceByFirstVisitName.compute(referenceName, (k, element) -> { if (element == null) { return qualifiedName; } if (!qualifiedName.equals(element)) { nonUniqueReferences.add(referenceName); } return element; }); }