See #17798
this.tip.remove();
    this.rects.forEach(rect => {
      rect.remove();
    });
    this.rects.length = 0;
    if (this.container.parentNode) {
      this.container.parentNode.removeChild(this.container);
    }
  }
  inspect(nodes: Array<HTMLElement>, name?: ?string) {
    /
    /
    const elements = nodes.filter(node => node.nodeType === Node.ELEMENT_NODE);
    while (this.rects.length > elements.length) {
      const rect = this.rects.pop();
      rect.remove();
    }
    if (elements.length === 0) {