boolean (@Nullable HighlightInfo info) { if (info == null || !accepted(info)) return false; HighlightSeverity severity = info.getSeverity(); if (severity == HighlightSeverity.ERROR) { myErrorCount++; } return myInfos.add(info); }