boolean (@NotNull PsiElement element, int offsetInElement, @NotNull Processor<? super PsiReference> consumer) { if (element instanceof PsiReference) { if (!consumer.process((PsiReference)element)) { return false; } } return true; }