IElementType (final IElementType type, final Lexer originalLexer) { if (!myTokenSet.contains(type)) { return type; } while (true) { final IElementType tokenType = originalLexer.getTokenType(); if (tokenType != type) break; originalLexer.advance(); } return type; }