code: public static Collection<ModelElementType> calculateAllBaseTypes(ModelElementType type) {
      List<ModelElementType> baseTypes = new ArrayList<ModelElementType>();
      ModelElementTypeImpl typeImpl = (ModelElementTypeImpl) type;
      typeImpl.resolveBaseTypes(baseTypes);
      return baseTypes;
    }
docs: Calculate a collection of all base types for the given type