String (@NotNull CharSequence text, int start, @NotNull Lexer lexer) { lexer.start(text, start, text.length()); StringBuilder result = new StringBuilder(); IElementType tokenType; while ((tokenType = lexer.getTokenType()) != null) { result.append(printSingleToken(text, tokenType, lexer.getTokenStart(), lexer.getTokenEnd())); lexer.advance(); } return result.toString(); }