docs: static Stream<XsdAttribute> getOwnAttributes(XsdElement element){
          XsdComplexType complexType = element.getXsdComplexType();
  
          if (complexType != null) {
              Stream<XsdAttribute> extensionAttributes = null;
              Stream<XsdAttribute> complexTypeAttributes;
  
              XsdComplexContent complexContent = complexType.getComplexContent();
  
              if (complexContent != null){
                  XsdExtension extension = complexContent.getXsdExtension();
  
                  if (extension != null){
                      extensionAttributes = extension.getXsdAttributes();
                  }
              }
  
              complexTypeAttributes = complexType.getXsdAttributes()
                      .filter(attribute -> attribute.getParent().getClass().equals(XsdComplexType.class));
  
              if (extensionAttributes != null){
                  return Stream.concat(extensionAttributes, complexTypeAttributes);
              } else {
                  return complexTypeAttributes;
              }
          }
  
          return Stream.empty();
      }