Set<HighlightSeverity> () { LOG.assertTrue(myInitialized); Set<HighlightSeverity> result = new HashSet<>(); for (Tools tools : myTools.values()) { for (ScopeToolState state : tools.getTools()) { result.add(state.getLevel().getSeverity()); } } return result; }