public static TreeCursor of(TokenTree tree) {
        return new TreeCursor(tree, null);
    }
Create a TreeCursor from the given TokenTree, treating it as the root of the tree.

@param tree Tree to create a cursor from.
@return Returns the created cursor.
smithy-syntax/src/main/java/software/amazon/smithy/syntax/TreeCursor.java