private static boolean isToken(CapturingTokenizer tokenizer, IdlToken... tokens) {
        IdlToken currentTokenType = tokenizer.getCurrentToken();

        for (IdlToken token : tokens) {
            if (currentTokenType == token) {
                return true;
            }
        }

        return false;
    }
The innermost node of the token tree that contains an actual token returned from {@link IdlTokenizer}.
smithy-syntax/src/main/java/software/amazon/smithy/syntax/TreeType.java