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