docs: private static @Nonnull Map<String, String> attributesToMap(NamedNodeMap nnm) {
          return IntStream.range(0, nnm.getLength())
                      .mapToObj(nnm::item)
                      .collect(toMap(Node::getNodeName, Node::getNodeValue));
      }