public static CapturedToken from(IdlTokenizer tokenizer) {
        return from(tokenizer, CharSequence::toString);
    }
Persist the current token of an {@link IdlTokenizer}.

@param tokenizer Tokenizer to capture.
@return Returns the persisted token.
smithy-syntax/src/main/java/software/amazon/smithy/syntax/CapturedToken.java