docs: public Cardinalities getCardinalities(Class<? extends ElementBase> sourceClass) {
          Class<?> clazz = sourceClass;
          Cardinalities cardinalities = null;
          
          while (cardinalities == null && clazz != null) {
              cardinalities = map.get(clazz);
              clazz = clazz == ElementBase.class ? null : clazz.getSuperclass();
          }
          
          return cardinalities;
      }