docs: public int getTotalCardinality(Class<? extends ElementBase> sourceClass) {
          Cardinalities cardinalities = getCardinalities(sourceClass);
          return cardinalities == null ? 0 : cardinalities.total;
      }