List<HighlightSeverity> () { List<HighlightSeverity> order = new ArrayList<>(STANDARD_SEVERITIES.size() + myMap.size()); for (HighlightInfoType type : STANDARD_SEVERITIES.values()) { order.add(type.getSeverity(null)); } for (SeverityBasedTextAttributes attributes : myMap.values()) { order.add(attributes.getSeverity()); } order.sort(null); return order; }