docs: protected static boolean isLegacyAsyncAtMultiInstance(PvmExecutionImpl execution) {
      ActivityImpl activity = execution.getActivity();
  
      if (activity != null) {
        boolean isAsync = execution.getActivityInstanceId() == null;
        boolean isAtMultiInstance = activity.getParentFlowScopeActivity() != null
            && activity.getParentFlowScopeActivity().getActivityBehavior() instanceof MultiInstanceActivityBehavior;
  
  
        return isAsync && isAtMultiInstance;
      }
      else {
        return false;
      }
    }