protected final void attachToProcess(@NotNull ProcessHandler processHandler, boolean attachToProcessOutput) {
    attachToProcess(processHandler,
                    new ProcessHandlerTtyConnector(processHandler, EncodingProjectManager.getInstance(myProject).getDefaultCharset()),
                    attachToProcessOutput);
  }
protected final void attachToProcess(@NotNull ProcessHandler processHandler, boolean attachToProcessOutput)