@Override
  public void uiDataSnapshot(@NotNull DataSink sink) {
    sink.set(PlatformDataKeys.TOOL_WINDOW, window);
    sink.set(PlatformCoreDataKeys.HELP_ID, window.getHelpId());
    sink.set(CommonDataKeys.PROJECT, window.toolWindowManager.getProject());
    sink.set(CloseAction.CloseTarget.KEY, computeCloseTarget());
    if (getCurrentLayout() instanceof MorePopupAware o) {
      sink.set(MorePopupAware.KEY_TOOLWINDOW_TITLE, o);
    }
    if (type == ToolWindowContentUiType.TABBED) {
      sink.set(SELECTED_CONTENT_TAB_LABEL, tabsLayout.findTabLabelByContent(contentManager.getSelectedContent()));
    }
  }
@Override
  public void uiDataSnapshot(@NotNull DataSink sink)