public static boolean editConfiguration(final Project project,
                                          @NotNull RunnerAndConfigurationSettings configuration,
                                          @NlsContexts.DialogTitle String title,
                                          final @Nullable Executor executor) {
    SingleConfigurationConfigurable<RunConfiguration> configurable = SingleConfigurationConfigurable.editSettings(configuration, executor);
    final SingleConfigurableEditor dialog = new SingleConfigurableEditor(project, configurable, null, DialogWrapper.IdeModalityType.IDE) {
      {
        if (executor != null) {
          setOKButtonText(executor.getActionName());
          //setOKButtonIcon(executor.getIcon());
        }
      }

      @Override
      public Dimension getInitialSize() {
        return new Dimension(650, 500);
      }
    };

    dialog.setTitle(title);
    return dialog.showAndGet();
  }
public static boolean editConfiguration(final Project project,
                                          @NotNull RunnerAndConfigurationSettings configuration,
                                          @NlsContexts.DialogTitle String title,
                                          final @Nullable Executor executor)