void (@NotNull ToolWindow toolWindow) { ContentManager manager = toolWindow.getContentManager(); if (manager instanceof ContentManagerImpl) { ContentUI ui = ((ContentManagerImpl)manager).getUI(); if (ui instanceof ToolWindowContentUi) { ((ToolWindowContentUi)ui).rebuild(); } } }