List<HighlightInfo> (@NotNull Document document, @Nullable HighlightSeverity minSeverity, @NotNull Project project) { List<HighlightInfo> infos = new ArrayList<>(); processHighlights(document, project, minSeverity, 0, document.getTextLength(), Processors.cancelableCollectProcessor(infos)); return infos; }