private static boolean isNonPtyProcess(@NotNull ProcessHandler processHandler) {
    if (processHandler instanceof BaseProcessHandler) {
      Process process = ((BaseProcessHandler<?>)processHandler).getProcess();
      return !(process instanceof PtyProcess);
    }
    return true;
  }
private static boolean isNonPtyProcess(@NotNull ProcessHandler processHandler)