docs: public static void removeLegacySubscriptionOnParent(ExecutionEntity execution, EventSubscriptionEntity eventSubscription) {
      ActivityImpl activity = execution.getActivity();
      if (activity == null) {
        return;
      }
  
      ActivityBehavior behavior = activity.getActivityBehavior();
      ActivityBehavior parentBehavior = (ActivityBehavior) (activity.getFlowScope() != null ? activity.getFlowScope().getActivityBehavior() : null);
  
      if (behavior instanceof ReceiveTaskActivityBehavior &&
          parentBehavior instanceof MultiInstanceActivityBehavior) {
        List<EventSubscriptionEntity> parentSubscriptions = execution.getParent().getEventSubscriptions();
  
        for (EventSubscriptionEntity subscription : parentSubscriptions) {
          // distinguish a boundary event on the mi body with the same message name from the receive task subscription
          if (areEqualEventSubscriptions(subscription, eventSubscription)) {
            subscription.delete();
          }
        }
      }
  
    }