void (String text, final ConsoleViewContentType outputType) { VirtualFile file = getVirtualFile(); if (PyConsoleUtil.detectIPythonImported(text, outputType)) { PyConsoleUtil.markIPython(file); PythonConsoleExecuteActionHandler handler = getExecuteActionHandler(); if (handler != null) { handler.updateConsoleState(); } } if (PyConsoleUtil.detectIPythonAutomagicOn(text)) { PyConsoleUtil.setIPythonAutomagic(file, true); } if (PyConsoleUtil.detectIPythonAutomagicOff(text)) { PyConsoleUtil.setIPythonAutomagic(file, false); } }