boolean (@NotNull HighlightInfo warning, @NotNull SeverityRegistrar severityRegistrar, @NotNull HighlightInfo candidate) { if (!isCoveredByOffsets(warning, candidate)) return false; if (candidate.getSeverity() == HighlightInfoType.SYMBOL_TYPE_SEVERITY) return false; // syntax should not interfere with warnings return isSevere(candidate, severityRegistrar); }