void (@NotNull HighlightManager highlightManager, @NotNull Editor editor, @NotNull List<? extends PsiReference> refs, @NotNull TextAttributesKey attributesKey, boolean clearHighlights) { List<TextRange> textRanges = new ArrayList<>(refs.size()); for (PsiReference ref : refs) { collectHighlightRanges(ref, textRanges); } highlightRanges(highlightManager, editor, attributesKey, clearHighlights, textRanges); }