DefaultActionGroup (@NotNull JComponent button, @NotNull DataContext context) { DefaultActionGroup group = new DefaultActionGroup(); for(NamedScope namedScope: getValidScopes()) { group.add(new MenuAction(namedScope)); } group.add(new ConfigureScopesAction()); return group; }