DefaultActionGroup (@NotNull JComponent button, @NotNull DataContext context) { final DefaultActionGroup group = new DefaultActionGroup(); for (final HighlightSeverity severity : getSeverities(mySeverityRegistrar, myIncludeDoNotShow)) { final HighlightSeverityAction action = new HighlightSeverityAction(severity); if (myChosen == null) { setChosen(action.getSeverity()); } group.add(action); } group.addSeparator(); group.add(new DumbAwareAction(InspectionsBundle.message("inspection.edit.severities.action")) { @Override public void actionPerformed(@NotNull final AnActionEvent e) { Project project = e.getProject(); if (project == null) project = ProjectManager.getInstance().getDefaultProject(); SeverityEditorDialog.show(project, myChosen, mySeverityRegistrar, true, severity -> { setChosen(severity); onChosen(severity); }); } }); return group; }