DefaultActionGroup (@NotNull JComponent button, @NotNull DataContext context) { final DefaultActionGroup group = new DefaultActionGroup(); for (final PatternDialectProvider provider : PatternDialectProvider.EP_NAME.getExtensionList()) { group.add(new AnAction(provider.getDisplayName()) { @Override public void actionPerformed(@NotNull final AnActionEvent e) { DependencyUISettings.getInstance().SCOPE_TYPE = provider.getShortName(); myUpdate.run(); } }); } return group; }