boolean (@NotNull PsiNamedElement namedElement) { final String referenceName = getReferenceName(); if (referenceName == null) return false; final String name = namedElement.getName(); return referenceName.equals(name); }