public static @NotNull GeneralCommandLine setupJVMCommandLine(@NotNull SimpleJavaParameters javaParameters) throws CantRunException {
    LocalTargetEnvironmentRequest request = new LocalTargetEnvironmentRequest();
    TargetedCommandLineBuilder builder = setupJVMCommandLine(javaParameters, request );
    LocalTargetEnvironment environment;
    try {
      environment = request.prepareEnvironment(TargetProgressIndicator.EMPTY);
    }
    catch (ExecutionException e) {
      throw new CantRunException(e.getMessage(), e);
    }
    return environment.createGeneralCommandLine(builder.build());
  }
public static @NotNull GeneralCommandLine setupJVMCommandLine(@NotNull SimpleJavaParameters javaParameters)