public static @Nullable Pair<String, CodeStyleScheme> selectOrCreateTargetScheme(@NotNull Project project,
                                                                                   @NotNull CodeStyleScheme currentScheme,
                                                                                   @NotNull SchemeFactory<? extends CodeStyleScheme> schemeFactory,
                                                                                   @NlsContexts.Label String @NotNull... schemeNames) {
    ImportSchemeChooserDialog dialog = new ImportSchemeChooserDialog(project, schemeNames, !currentScheme.isDefault() ? currentScheme.getName() : null);
    if (dialog.showAndGet()) {
      return pair(
        dialog.getSelectedName(),
        dialog.isUseCurrentScheme() && (!currentScheme.isDefault()) ? currentScheme : schemeFactory.createNewScheme(dialog.getTargetName()));
    }
    return null;
  }
public static @Nullable Pair<String, CodeStyleScheme> selectOrCreateTargetScheme(@NotNull Project project,
                                                                                   @NotNull CodeStyleScheme currentScheme,
                                                                                   @NotNull SchemeFactory<? extends CodeStyleScheme> schemeFactory,
                                                                                   @NlsContexts.Label String @NotNull... schemeNames)