code: protected boolean isHistoryEventProduced(HistoryEventType eventType, Job job) {
      ProcessEngineConfigurationImpl configuration = Context.getProcessEngineConfiguration();
      HistoryLevel historyLevel = configuration.getHistoryLevel();
      return historyLevel.isHistoryEventProduced(eventType, job);
    }
docs: helper /////////////////////////////////////////////////////////