docs: static List<XsdRestriction> getAttributeRestrictions(XsdAttribute attribute) {
          try {
              return attribute.getAllRestrictions();
          } catch (InvalidParameterException e){
              throw new AsmException("The provided XSD file has contradictory restrictions.", e);
          }
      }