@NotNull
  private List<TaskActivationEntry> findTasksUnder(SimpleNode @NotNull [] nodes) {
    List<TaskActivationEntry> tasks = new SmartList<>();
    for (SimpleNode node : nodes) {
      if (node instanceof TaskNode taskNode) {
        final String taskName = taskNode.getName();
        final PhaseNode phaseNode = (PhaseNode)taskNode.getParent();
        tasks.add(new TaskActivationEntry(myProjectSystemId, phaseNode.myPhase, phaseNode.myProjectPath, taskName));
      }
      else {
        tasks.addAll(findTasksUnder(node.getChildren()));
      }
    }
    return tasks;
  }
@NotNull
  private List<TaskActivationEntry> findTasksUnder(SimpleNode @NotNull [] nodes)