docs: public void addCardinality(Class<? extends ElementBase> sourceClass, Class<? extends ElementBase> targetClass,
                                 int maxOccurrences) {
          Cardinality cardinality = new Cardinality(sourceClass, targetClass, maxOccurrences);
          getOrCreateCardinalities(sourceClass).addCardinality(cardinality);
      }