@Override
        public void onStart(@NotNull ExternalSystemTaskId id, String workingDir) {
          if (progressListener != null) {
            AnAction rerunTaskAction = new ExternalSystemRunConfiguration.MyTaskRerunAction(progressListener, myEnv, myContentDescriptor);
            BuildViewSettingsProvider viewSettingsProvider =
              consoleView instanceof BuildViewSettingsProvider ?
              new BuildViewSettingsProviderAdapter((BuildViewSettingsProvider)consoleView) : null;
            buildDescriptor
              .withProcessHandler(processHandler, view -> ExternalSystemRunConfiguration
                .foldGreetingOrFarewell(consoleView, greeting, true))
              .withContentDescriptor(() -> myContentDescriptor)
              .withActions(customActions)
              .withRestartAction(rerunTaskAction)
              .withRestartActions(restartActions)
              .withContextActions(contextActions)
              .withExecutionEnvironment(myEnv);
            progressListener.onEvent(id,
                                     new StartBuildEventImpl(buildDescriptor, BuildBundle.message("build.status.running"))
                                       .withBuildViewSettingsProvider(viewSettingsProvider));
          }
        }
@Override
        public void onStart(@NotNull ExternalSystemTaskId id, String workingDir)