boolean (@NotNull Document document, @NotNull Project project, @NotNull HighlightSeverity minSeverity, int offset, boolean includeFixRange, @NotNull Processor<? super HighlightInfo> processor) { return processHighlights(document, project, null, 0, document.getTextLength(), info -> { if (!info.containsOffset(offset, includeFixRange)) return true; int compare = info.getSeverity().compareTo(minSeverity); return compare < 0 || processor.process(info); }); }