docs: private TaskEvent getMatchStage(NodeTask nodeTask, StageType stage) {
          List<StageType> stages = nodeTask.getStage();
          List<TaskEvent> events = nodeTask.getEvent();
  
          for (int i = 0; i < stages.size(); i++) {
              if (stages.get(i) == stage) {
                  return events.get(i);
              }
  
          }
  
          return null;
      }