ToolWindow () { ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project); ToolWindow toolWindow = toolWindowManager.getToolWindow(TOOL_WINDOW_ID); if (toolWindow != null) { return toolWindow; } toolWindow = toolWindowManager.registerToolWindow(TOOL_WINDOW_ID, builder -> { builder.stripeTitle = UIBundle.messagePointer("tool.window.name.build"); builder.icon = AllIcons.Toolwindows.ToolWindowBuild; return Unit.INSTANCE; }); toolWindow.setToHideOnEmptyContent(true); return toolWindow; }