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