private void incErrorCount(@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);
  }
private void incErrorCount(@NotNull RangeHighlighter highlighter, int delta)