@Override
  protected @NotNull Process createProcess(@NotNull ProcessBuilder processBuilder) throws IOException {
    if (getInputFile() == null && !isProcessCreatorSet()) {
      try {
        return startProcessWithPty(processBuilder.command());
      }
      catch (Throwable t) {
        var message = "Couldn't run process with PTY";
        if (LOG.isDebugEnabled()) {
          var logFileContent = loadLogFile();
          if (logFileContent != null) {
            LOG.debug(message, t, logFileContent);
          }
          else {
            LOG.warn(message, t);
          }
        }
        else {
          LOG.warn(message, t);
        }
      }
    }
    return super.createProcess(processBuilder);
  }
@Override
  protected @NotNull Process createProcess(@NotNull ProcessBuilder processBuilder)