docs: private static Element nextElement(XMLExtendedStreamReader reader, String expectedNamespace) throws XMLStreamException {
          Element element = Element.forName(reader.getLocalName());
  
          if (element == null) {
              return element;
          } else if (expectedNamespace.equals(reader.getNamespaceURI())) {
              return element;
          }
  
          throw unexpectedElement(reader);
      }