public TreeCursor getFirstChild(TreeType type) {
        for (TokenTree child : getTree().getChildren()) {
            if (child.getType() == type) {
                return new TreeCursor(child, this);
            }
        }
        return null;
    }
Get the first child of the wrapped tree with the given type.

@param type Child type to get.
@return Return the first child, or null if a matching child is not found.
smithy-syntax/src/main/java/software/amazon/smithy/syntax/TreeCursor.java