@NotNull
 public static PydevConsoleRunner createAndRun(
     @NotNull final Project project,
     @NotNull final Sdk sdk,
     @NotNull final PyConsoleType consoleType,
     @Nullable final String workingDirectory,
     @NotNull final Map<String, String> environmentVariables,
     @Nullable final ToolWindow toolWindow,
     final String... statements2execute) {
   final PydevConsoleRunner consoleRunner =
       create(project, sdk, consoleType, workingDirectory, environmentVariables);
   consoleRunner.setToolWindow(toolWindow);
   consoleRunner.setStatementsToExecute(statements2execute);
   consoleRunner.run();
   return consoleRunner;
 }
 @Override
 public void actionPerformed(AnActionEvent e) {
   myConsoleRunner.rerun();
 }