docs: public static void processHistoryEvents(HistoryEventCreator creator) {
      HistoryEventProducer historyEventProducer = Context.getProcessEngineConfiguration().getHistoryEventProducer();
      HistoryEventHandler historyEventHandler = Context.getProcessEngineConfiguration().getHistoryEventHandler();
  
      HistoryEvent singleEvent = creator.createHistoryEvent(historyEventProducer);
      if (singleEvent != null) {
        historyEventHandler.handleEvent(singleEvent);
      }
  
      List<HistoryEvent> eventList = creator.createHistoryEvents(historyEventProducer);
      historyEventHandler.handleEvents(eventList);
    }