@Override
    @NotNull
    protected final DefaultActionGroup createPopupActionGroup(@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;
    }
@Override
    @NotNull
    protected final DefaultActionGroup createPopupActionGroup(@NotNull JComponent button, @NotNull DataContext context)