ToolWindow (@NotNull Project project) { final ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project); ToolWindow consoleToolWindow = toolWindowManager.getToolWindow(PythonConsoleToolWindowFactory.ID); if (consoleToolWindow == null) { consoleToolWindow = toolWindowManager.registerToolWindow(PythonConsoleToolWindowFactory.ID, builder -> { builder.hideOnEmptyContent = false; builder.anchor = ToolWindowAnchor.BOTTOM; return Unit.INSTANCE; }); consoleToolWindow.setIcon(PythonIcons.Python.PythonConsoleToolWindow); } return consoleToolWindow; }