public @NotNull RunConfiguration createConfiguration(@NlsSafe @Nullable String name, @NotNull RunConfiguration template) {
    RunConfiguration newConfiguration = template.clone();
    newConfiguration.setName(name);
    return newConfiguration;
  }
public @NotNull RunConfiguration createConfiguration(@NlsSafe @Nullable String name, @NotNull RunConfiguration template)