boolean (@NotNull PsiElement element) { if (element instanceof PsiNamedElement && Objects.equals(((PsiNamedElement)element).getName(), getReferenceName())) { return getManager().areElementsEquivalent(element, resolve()); } return false; }