boolean (@NotNull PsiElement element, int offsetInElement, @NotNull Processor<? super PsiReference> consumer) { PsiElement parent = element.getParent(); if (parent instanceof GrReferenceExpression && element == ((GrReferenceExpression)parent).getReferenceNameElement()) { PsiElement resolved = ((GrReferenceExpression)parent).resolve(); if (resolved instanceof GrTraitField) { PsiField prototype = ((GrTraitField)resolved).getPrototype(); if (myManager.areElementsEquivalent(prototype, resolved)) { if (!consumer.process((PsiReference)parent)) { return false; } } } } return true; }