docs: public static EventSubscriptionJobDeclaration findDeclarationForSubscription(EventSubscriptionEntity eventSubscription) {
      List<EventSubscriptionJobDeclaration> declarations = getDeclarationsForActivity(eventSubscription.getActivity());
  
      for (EventSubscriptionJobDeclaration declaration : declarations) {
        if (declaration.getEventType().equals(eventSubscription.getEventType())) {
          return declaration;
        }
      }
  
      return null;
    }