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