boolean (@NotNull PsiElement element) { PsiManagerEx manager = getManager(); for (PsiElement myReferredElement : myReferredElements) { if (manager.areElementsEquivalent(element, myReferredElement)) return true; } return false; }