docs: public static void migrateMultiInstanceJobDefinitions(ProcessDefinitionEntity processDefinition, List<JobDefinitionEntity> jobDefinitions) {
      for (JobDefinitionEntity jobDefinition : jobDefinitions) {
  
        String activityId = jobDefinition.getActivityId();
        if (activityId != null) {
          ActivityImpl activity = processDefinition.findActivity(jobDefinition.getActivityId());
  
          if (!isAsync(activity) && isActivityWrappedInMultiInstanceBody(activity) && isAsyncJobDefinition(jobDefinition)) {
            jobDefinition.setActivityId(activity.getFlowScope().getId());
          }
        }
      }
    }