 {
    const nodes = this._getSidebarElements(win);
    if (!nodes) {
      return false;
    }
    const { chromeDoc, box, splitter } = nodes;

    const opening = box.hidden;
    if (opening) {
      this.ensureBrowserIsAppended(chromeDoc, box);
    }

    box.hidden = !opening;
    splitter.hidden = !opening;

    if (opening && box.parentElement?.hidden) {
      box.parentElement.hidden = false;
    }

    return opening;
  },
};
PK