public TreeCursor getLastChild() {
        if (tree.getChildren().isEmpty()) {
            return null;
        } else {
            return new TreeCursor(tree.getChildren().get(tree.getChildren().size() - 1), this);
        }
    }
Get the last child of the wrapped tree.

@return Return the last child, or null if the tree has no children.
smithy-syntax/src/main/java/software/amazon/smithy/syntax/TreeCursor.java