void (final @NotNull Project project, final @NotNull Executor executor, @NotNull DataContext context) { if (new EditConfigurationsDialog(project) { @Override protected void init() { setOKButtonText(executor.getActionName()); myExecutor = executor; super.init(); } }.showAndGet()) { ApplicationManager.getApplication().invokeLater(() -> { RunnerAndConfigurationSettings configuration = RunManager.getInstance(project).getSelectedConfiguration(); if (configuration != null) { ExecutionUtil.doRunConfiguration(configuration, executor, null, null, context); } }, project.getDisposed()); } }