@NotNull
  private static Sdk createSdkInternal(@NotNull SdkType type,
                                       @NotNull String newSdkName,
                                       @NotNull String home) {
    final Sdk newJdk = ProjectJdkTable.getInstance().createSdk(newSdkName, type);
    SdkModificator sdkModificator = newJdk.getSdkModificator();
    sdkModificator.setHomePath(home);
    sdkModificator.setVersionString(type.getVersionString(home));
    ApplicationManager.getApplication().runWriteAction(() -> {
      sdkModificator.commitChanges();
    });
    return newJdk;
  }
@NotNull
  private static Sdk createSdkInternal(@NotNull SdkType type,
                                       @NotNull String newSdkName,
                                       @NotNull String home)