code: public void resolveBaseTypes(List<ModelElementType> baseTypes) {
      if (baseType != null) {
        baseTypes.add(baseType);
        baseType.resolveBaseTypes(baseTypes);
      }
    }
docs: Resolve all types which are base types of this type
  
  @param baseTypes list of calculated base types