@NotNull
  private ExecutionNode addAsPresentableEventNode(@NotNull PresentableBuildEvent event,
                                                  @NotNull Set<? super ExecutionNode> structureChanged,
                                                  @Nullable ExecutionNode parentNode,
                                                  @NotNull Object eventId,
                                                  @NotNull ExecutionNode buildProgressRootNode) {
    ExecutionNode executionNode = new ExecutionNode(myProject, parentNode, parentNode == buildProgressRootNode, this::isCorrectThread);
    BuildEventPresentationData presentationData = event.getPresentationData();
    executionNode.applyFrom(presentationData);
    nodesMap.put(eventId, executionNode);
    if (parentNode != null) {
      structureChanged.add(parentNode);
      parentNode.add(executionNode);
    }
    myConsoleViewHandler.maybeAddExecutionConsole(executionNode, presentationData);
    return executionNode;
  }
@NotNull
  private ExecutionNode addAsPresentableEventNode(@NotNull PresentableBuildEvent event,
                                                  @NotNull Set<? super ExecutionNode> structureChanged,
                                                  @Nullable ExecutionNode parentNode,
                                                  @NotNull Object eventId,
                                                  @NotNull ExecutionNode buildProgressRootNode)