public static PathPatternTree deserialize(ByteBuffer buffer) {
    PathPatternTree deserializedPatternTree = new PathPatternTree();
    PathPatternNode<Void, VoidSerializer> root =
        PathPatternNode.deserializeNode(
            buffer, VoidSerializer.getInstance(), deserializedPatternTree::processNodeName);
    deserializedPatternTree.setRoot(root);
    return deserializedPatternTree;
  }
Construct tree according to the pathPatternList.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PathPatternTree.java