void (Lexer lexer, final String text) { lexer.start(text); long time = System.nanoTime(); int count = 0; while (lexer.getTokenType() != null) { lexer.advance(); count++; } LOG.debug("Plain lexing took " + (System.nanoTime() - time) + "ns. Lexemes count:" + count); }