docs: static boolean attributeHasEnum(XsdAttribute attribute) {
          List<XsdRestriction> restrictions = getAttributeRestrictions(attribute);
  
          return restrictions != null && restrictions.size() == 1 && restrictions.get(0).getEnumeration() != null && !restrictions.get(0).getEnumeration().isEmpty();
      }