void (@NotNull PsiReference ref, @NotNull Collection<? super TextRange> result) { for (TextRange relativeRange : ReferenceRange.getRanges(ref)) { collectHighlightRanges(ref.getElement(), relativeRange, result); } }