void (String text) { myLexer.start(text, 0, text.length(), getLexerState()); while (hasNext()) { Pair<String, ConsoleViewContentType> pair = next(); myPythonConsoleView.printText(pair.first, pair.second); } }