void (@NotNull PsiAnnotation annotation) { final PsiJavaCodeReferenceElement referenceElement = annotation.getNameReferenceElement(); if (referenceElement != null) { final String name = referenceElement.getText(); if (!namedElements.containsKey(name)) { namedElements.put(name, annotation); super.visitAnnotation(annotation); } } }