docs: private Cardinalities getOrCreateCardinalities(Class<? extends ElementBase> sourceClass) {
          Cardinalities cardinalities = map.get(sourceClass);
          
          if (cardinalities == null) {
              map.put(sourceClass, cardinalities = new Cardinalities());
          }
          
          return cardinalities;
      }