boolean (@NotNull PsiElement element) { String name = getReferenceName(); if (!(element instanceof PsiNamedElement) || !name.equals(((PsiNamedElement)element).getName())) { return false; } for (JavaResolveResult result : multiResolve(false)) { if (getManager().areElementsEquivalent(result.getElement(), element)) { return true; } } return false; }