docs: protected boolean isHistoryEventProduced(HistoryEventType eventType, ExternalTask externalTask) {
      ProcessEngineConfigurationImpl configuration = Context.getProcessEngineConfiguration();
      HistoryLevel historyLevel = configuration.getHistoryLevel();
      return historyLevel.isHistoryEventProduced(eventType, externalTask);
    }