@Nullable
  private String getJdkRoot(JrePathEditor pathEditor, Module module) {
    if (!pathEditor.isAlternativeJreSelected()) {
      if (module != null) {
        Sdk sdk = JavaParameters.getJdkToRunModule(module, productionOnly());
        return sdk != null ? sdk.getHomePath() : null;
      }
      return null;
    }
    String jrePathOrName = pathEditor.getJrePathOrName();
    if (jrePathOrName != null) {
      Sdk configuredJdk = ProjectJdkTable.getInstance().findJdk(jrePathOrName);
      if (configuredJdk != null) {
        return configuredJdk.getHomePath();
      }
      else {
        return jrePathOrName;
      }
    }
    return null;
  }
@Nullable
  private String getJdkRoot(JrePathEditor pathEditor, Module module)