private static Wrapper setToolWindowHeaderSideComponent(ToolWindowEx toolWindowEx) {
    if (!Registry.is("ide.services.tool.window.header.nav.bar", true) ||
        AppMode.isRemoteDevHost()) {
      return null;
    }
    InternalDecoratorImpl decorator = ObjectUtils.tryCast(toolWindowEx.getDecorator(), InternalDecoratorImpl.class);
    if (decorator == null) return null;

    Wrapper wrapper = new Wrapper();
    decorator.getHeader().setSideComponent(wrapper);
    return wrapper;
  }
private static Wrapper setToolWindowHeaderSideComponent(ToolWindowEx toolWindowEx)