@Nullable
  private static String getJrePath(JavaRunConfigurationBase settings) {
    String jrePath = null;
    Sdk sdk;
    if (settings.isAlternativeJrePathEnabled()) {
      jrePath = settings.getAlternativeJrePath();
      sdk = jrePath == null ? null : ProjectJdkTable.getInstance().findJdk(jrePath);
    }
    else {
      Module module = settings.getConfigurationModule().getModule();
      if (module != null) {
        sdk = JavaParameters.getJdkToRunModule(module, false);
      }
      else {
        sdk = PathUtilEx.getAnyJdk(settings.getProject());
      }
    }
    if (sdk != null) {
      jrePath = sdk.getHomePath();
    }
    return jrePath;
  }
@Nullable
  private static String getJrePath(JavaRunConfigurationBase settings)