boolean (Lexer lexer, TokenSet tokenSet) { final LexerPosition position = lexer.getCurrentPosition(); try { lexer.advance(); skipWhitespaceAnComments(lexer); return tokenSet.contains(lexer.getTokenType()); } finally { lexer.restore(position); } }