docs: static String getEnumName(XsdAttribute attribute) {
          String enumPrefix = "Enum";
  
          if (attribute.getType() != null){
              String attributeName = getCleanName(attribute);
              String attributeTypeName = firstToUpper(attribute.getType().replaceAll("[^a-zA-Z0-9]", ""));
  
              if (attributeTypeName.startsWith(attributeName)){
                  return enumPrefix + attributeTypeName;
              }
  
              return enumPrefix + attributeName + attributeTypeName;
          }
  
          XsdAbstractElement elem = attribute;
  
          while (elem != null){
              if (elem instanceof XsdElement){
                  return enumPrefix + getCleanName(attribute) + firstToUpper(((XsdElement) elem).getName());
              }
  
              elem = elem.getParent();
          }
  
          return enumPrefix + getCleanName(attribute);
      }