BuildView (DefaultBuildDescriptor buildDescriptor, ExecutionConsole executionConsole) { ExternalSystemRunConfigurationViewManager viewManager = myProject.getService(ExternalSystemRunConfigurationViewManager.class); return new BuildView(myProject, executionConsole, buildDescriptor, "build.toolwindow.run.selection.state", viewManager) { @Override public void onEvent(@NotNull Object buildId, @NotNull BuildEvent event) { super.onEvent(buildId, event); viewManager.onEvent(buildId, event); } }; }