protected @Nullable RunnerAndConfigurationSettings getSelectedConfiguration(@NotNull AnActionEvent e) {
    Project project = e.getProject();
    RunManager runManager = project == null ? null : RunManager.getInstanceIfCreated(project);
    return runManager == null ? null : runManager.getSelectedConfiguration();
  }
protected @Nullable RunnerAndConfigurationSettings getSelectedConfiguration(@NotNull AnActionEvent e)