boolean (@NotNull HighlightersRecycler infosToRemove, @NotNull HighlightingSession session) { boolean changed = false; // do not remove obsolete highlighters if we are in "essential highlighting only" mode, because otherwise all inspection-produced results would be gone for (RangeHighlighter highlighter : infosToRemove.forAllInGarbageBin()) { boolean shouldRemove = shouldRemoveHighlighter(highlighter, session); HighlightInfo info = HighlightInfo.fromRangeHighlighter(highlighter); if (LOG.isDebugEnabled()) { LOG.debug("incinerateObsoleteHighlighters "+highlighter+"; info:"+info+"; shouldRemove:"+shouldRemove); } if (shouldRemove) { highlighter.dispose(); changed = true; if (info != null && info.isFileLevelAnnotation()) { session.removeFileLevelHighlight(info); } } } return changed; }