@Override
  protected JBPopup createActionPopup(DefaultActionGroup group,
                                      @NotNull DataContext context,
                                      @Nullable Runnable disposeCallback) {
    JBPopup popup = super.createActionPopup(group, context, disposeCallback);
    if (popup instanceof PopupFactoryImpl.ActionGroupPopup actionGroupPopup) {
      PopupStep<?> step = actionGroupPopup.getStep();
      if (step instanceof ActionPopupStep actionPopupStep) {
        actionPopupStep.setSubStepContextAdjuster((stepContext, action) -> {
          if (action instanceof SelectConfigAction selectConfigAction) {
            return CustomizedDataContext.withSnapshot(stepContext, sink -> {
              sink.set(RUN_CONFIGURATION_KEY, selectConfigAction.getConfiguration());
            });
          }
          else {
            return stepContext;
          }
        });
      }
    }
    return popup;
  }
@Override
  protected JBPopup createActionPopup(DefaultActionGroup group,
                                      @NotNull DataContext context,
                                      @Nullable Runnable disposeCallback)