private ProcessBuilder toProcessBuilder(List<String> escapedCommands) {
    var builder = new ProcessBuilder(escapedCommands);
    setupEnvironment(builder.environment());
    if (myWorkingDirectory != null) {
      builder.directory(myWorkingDirectory.toFile());
    }
    builder.redirectErrorStream(myRedirectErrorStream);
    if (myInputFile != null) {
      builder.redirectInput(ProcessBuilder.Redirect.from(myInputFile));
    }
    return builder;
  }
private ProcessBuilder toProcessBuilder(List<String> escapedCommands)