void (PyThreadInfo thread) { myConsoleContextFrame = new PyExecutionStack(this, thread).getTopFrame(); if (myExecutionConsole instanceof PythonDebugLanguageConsoleView consoleView) { UIUtil.invokeLaterIfNeeded(() -> { consoleView.enableConsole(false); consoleView.getPydevConsoleView().setConsoleEnabled(true); }); } }