void (@NotNull String text, @NotNull final ConsoleViewContentType outputType) { if (myTestMode) { text = PyTestsSharedKt.processTCMessage(text); } detectIPython(text, outputType); if (PyConsoleUtil.detectIPythonEnd(text)) { myIsIPythonOutput = false; mySourceHighlighter = null; } else if (PyConsoleUtil.detectIPythonStart(text)) { myIsIPythonOutput = true; } else { if (mySourceHighlighter == null || outputType == ConsoleViewContentType.ERROR_OUTPUT) { if (myHyperlink) { printHyperlink(text, outputType); } else { //Print text normally with converted attributes super.print(text, outputType); } myHyperlink = detectHyperlink(text); if (mySourceHighlighter == null && myIsIPythonOutput && PyConsoleUtil.detectSourcePrinting(text)) { mySourceHighlighter = new PyConsoleSourceHighlighter(this, myPyHighlighter); } } else { try { mySourceHighlighter.printHighlightedSource(text); } catch (Exception e) { LOG.error(e); } } } }