void () { PythonConsoleToolWindow toolWindow = PythonConsoleToolWindow.getInstance(myProject); if (toolWindow != null && toolWindow.isInitialized()) { toolWindow.getToolWindow().activate(() -> { }, true); } else { runSync(true); } }