docs: private static boolean attributeHasRestrictions(XsdAttribute attribute){
          List<XsdRestriction> restrictions = getAttributeRestrictions(attribute);
  
          //noinspection SimplifiableIfStatement
          if (restrictions.isEmpty()){
              return false;
          }
  
          return restrictions.stream().anyMatch(XsdAsmAttributes::hasRestrictionsOtherThanEnumeration);
      }