boolean (@NotNull PsiElement element, int offsetInElement, @NotNull final Processor<? super PsiReference> consumer) { for (PsiReference ref : ourReferenceService.getReferences(element, new PsiReferenceService.Hints(myMethods[0], offsetInElement))) { if (ReferenceRange.containsOffsetInElement(ref, offsetInElement) && !processReference(consumer, ref)) { return false; } } return true; }