docs: @Override
      public String getUniqueXPath(Node node) {
          if (node == null) {
              throw new IllegalArgumentException("Node cannot be null");
          }
  
          final StringBuilder path = new StringBuilder();
  
          for (;
                  node != null && node.getNodeType() == Node.ELEMENT_NODE;
                  node = node.getParentNode()) {
              final int elementIndex = getElementIndex(node);
              final String nodeName = node.getNodeName();
              if (elementIndex > 1) {
                  path.insert(0, "]").insert(0, elementIndex).insert(0, "[");
              }
              path.insert(0, nodeName).insert(0, "/");
          }
  
          return path.toString();
      }