docs: @Override
    public void recordTaskAssignment(TaskEntity task) {
      ExecutionEntity executionEntity = task.getExecution();
      if (isHistoryLevelAtLeast(HistoryLevel.ACTIVITY)) {
        if (executionEntity != null) {
          HistoricActivityInstanceEntity historicActivityInstance = findActivityInstance(executionEntity, false, true);
          if (historicActivityInstance != null) {
            historicActivityInstance.setAssignee(task.getAssignee());
          }
        }
      }
    }