private static DefaultExecutionResult runInTerminal(String command, String workingDirectory, Project project) throws ExecutionException {
    GeneralCommandLine commandLine = createCommandLineForScript(project, workingDirectory, command);
    ProcessHandler processHandler = createProcessHandler(commandLine);
    ProcessTerminatedListener.attach(processHandler);
    ConsoleView console = new TerminalExecutionConsole(project, processHandler);
    console.attachToProcess(processHandler);
    return new DefaultExecutionResult(console, processHandler);
  }
private static DefaultExecutionResult runInTerminal(String command, String workingDirectory, Project project)