code: public void resolveExtendingTypes(Set<ModelElementType> allExtendingTypes) {
      for(ModelElementType modelElementType : extendingTypes) {
        ModelElementTypeImpl modelElementTypeImpl = (ModelElementTypeImpl) modelElementType;
        if (!allExtendingTypes.contains(modelElementTypeImpl)) {
          allExtendingTypes.add(modelElementType);
          modelElementTypeImpl.resolveExtendingTypes(allExtendingTypes);
        }
      }
    }
docs: Resolve all types recursively which are extending this type
  
  @param allExtendingTypes set of calculated extending types