public ExecutionResult doRunExecute(@NotNull Executor executor,
                                        @NotNull ProgramRunner runner,
                                        ExternalSystemTaskId taskId,
                                        DefaultBuildDescriptor descriptor,
                                        ProcessHandler processHandler,
                                        @NotNull Function<String, String> targetFileMapper) throws ExecutionException {
      final BuildView buildView = createBuildView(executor, descriptor, processHandler);

      if (buildView == null) {
        MavenLog.LOG.warn("buildView is null for " + myConfiguration.getName());
      }
      MavenBuildEventProcessor eventProcessor =
        new MavenBuildEventProcessor(myConfiguration, buildView, descriptor, taskId, targetFileMapper, ctx ->
          new StartBuildEventImpl(descriptor, ""));

      processHandler.addProcessListener(new BuildToolConsoleProcessAdapter(eventProcessor));
      if (emulateTerminal()) {
        buildView.attachToProcess(processHandler);
      }
      else {
        buildView.attachToProcess(new MavenHandlerFilterSpyWrapper(processHandler));
      }

      AnAction[] actions = new AnAction[]{BuildTreeFilters.createFilteringActionsGroup(buildView)};
      DefaultExecutionResult res = new DefaultExecutionResult(buildView, processHandler, actions);
      List<AnAction> restartActions = new ArrayList<>();
      restartActions.add(new JvmToggleAutoTestAction());

      if (MavenResumeAction.isApplicable(getEnvironment().getProject(), getJavaParameters(), myConfiguration)) {
        MavenResumeAction resumeAction =
          new MavenResumeAction(res.getProcessHandler(), runner, getEnvironment(), eventProcessor.getParsingContext());
        restartActions.add(resumeAction);
      }
      res.setRestartActions(restartActions.toArray(AnAction.EMPTY_ARRAY));
      return res;
    }
public ExecutionResult doRunExecute(@NotNull Executor executor,
                                        @NotNull ProgramRunner runner,
                                        ExternalSystemTaskId taskId,
                                        DefaultBuildDescriptor descriptor,
                                        ProcessHandler processHandler,
                                        @NotNull Function<String, String> targetFileMapper)