protected RunnerAndConfigurationSettings cloneTemplateConfiguration(final Project project, final @Nullable ConfigurationContext context) {
    if (context != null) {
      final RunConfiguration original = context.getOriginalConfiguration(myConfigurationFactory.getType());
      if (original != null) {
        return RunManager.getInstance(project).createConfiguration(original.clone(), myConfigurationFactory);
      }
    }
    return RunManager.getInstance(project).createConfiguration("", myConfigurationFactory);
  }
protected RunnerAndConfigurationSettings cloneTemplateConfiguration(final Project project, final @Nullable ConfigurationContext context)