String (Map<String, ExpectedHighlightingSet> types, HighlightInfo info) { Map.Entry<String, ExpectedHighlightingSet> entry = ContainerUtil.find( types.entrySet(), e -> e.getValue().enabled && e.getValue().severity == info.getSeverity() && e.getValue().endOfLine == info.isAfterEndOfLine()); return entry != null ? entry.getKey() : null; }