TokenTree withState(TreeType state, Runnable parser) {
        return withState(state, this::defaultErrorRecovery, parser);
    }
Captures tokens to a stack of token trees.
smithy-syntax/src/main/java/software/amazon/smithy/syntax/CapturingTokenizer.java