boolean (@NotNull PsiElement element) { final PsiManager manager = getManager(); return resolve(false).stream() .map(it -> it.getElement()) .anyMatch(it -> manager.areElementsEquivalent(it, element)); }