protected static @NotNull RunnerAndConfigurationSettings cloneTemplateConfigurationStatic(final @NotNull ConfigurationContext context,
                                                                                            final @NotNull ConfigurationFactory configurationFactory) {
    final RunConfiguration original = context.getOriginalConfiguration(configurationFactory.getType());
    if (original != null) {
      return RunManager.getInstance(context.getProject()).createConfiguration(original.clone(), configurationFactory);
    }
    return RunManager.getInstance(context.getProject()).createConfiguration("", configurationFactory);
  }
protected static @NotNull RunnerAndConfigurationSettings cloneTemplateConfigurationStatic(final @NotNull ConfigurationContext context,
                                                                                            final @NotNull ConfigurationFactory configurationFactory)