code: private SagaType containsItem(final Iterable<SagaType> source, final Class itemToSearch) {
          SagaType containedItem = null;
  
          for (SagaType sagaType : source) {
              if (sagaType.getSagaClass().equals(itemToSearch)) {
                  containedItem = sagaType;
                  break;
              }
          }
  
          return containedItem;
      }
docs: Checks whether the source list contains a saga type matching the input class.