HighlightSeverity[] (InspectionProfileImpl profile) { List<HighlightSeverity> list = new ArrayList<>(LevelChooserAction.getSeverities(profile.getProfileManager().getSeverityRegistrar())); list.add(EDIT_SEVERITIES); return list.toArray(new HighlightSeverity[0]); }