boolean (@NotNull RangeHighlighter highlighter) { HighlightInfo info = HighlightInfo.fromRangeHighlighter(highlighter); if (info == null) return true; int group = info.getGroup(); if (group != Pass.LOCAL_INSPECTIONS && group != Pass.EXTERNAL_TOOLS && group != Pass.WHOLE_FILE_LOCAL_INSPECTIONS && group != Pass.UPDATE_ALL && group != GeneralHighlightingPass.POST_UPDATE_ALL ) { return true; } // update highlight if it's a symbol type (field/statics/etc), otherwise don't touch it (could have been e.g., unused symbol highlight) return group == Pass.UPDATE_ALL && ( info.getSeverity() == HighlightInfoType.SYMBOL_TYPE_SEVERITY || info.getSeverity() == HighlightSeverity.ERROR); }