void (@NotNull RangeHighlighter highlighter, int delta) { HighlightInfo info = HighlightInfo.fromRangeHighlighter(highlighter); if (info == null) return; HighlightSeverity infoSeverity = info.getSeverity(); if (infoSeverity.myVal <= HighlightSeverity.TEXT_ATTRIBUTES.myVal) return; errorCount.mergeInt(infoSeverity, delta, Integer::sum); }