docs: public static int getPosition(Element e) {
  
          NodeList<Node> childNodes = e.getParentElement().getChildNodes();
          for (int i = childNodes.getLength(); i >= 0; i--) {
              if (childNodes.getItem(i) == e) {
                  return i;
              }
          }
          return -1;
      }