ThreeState (HighlightInfo info, Map<ExpectedHighlightingSet, Set<HighlightInfo>> indexed) { if (info.getTextAttributes(null, null) == TextAttributes.ERASE_MARKER) return ThreeState.UNSURE; Collection<ExpectedHighlightingSet> expectedHighlights = myHighlightingTypes.values(); for (ExpectedHighlightingSet highlightingSet : expectedHighlights) { if (highlightingSet.severity != info.getSeverity()) continue; if (!highlightingSet.enabled) return ThreeState.UNSURE; Set<HighlightInfo> index = indexed.get(highlightingSet); if (index != null && index.contains(info)) return ThreeState.YES; } return ThreeState.NO; }