element.makeInactive();result.creations+=3;// 1 for the new BuildOwner, 1 for the new FocusManager, 1 for the new FocusScopeNode
element.makeInactive();result.creations+=4;// 1 for the new BuildOwner, 1 for the new FocusManager, 1 for the new FocusScopeNode, 1 for the new _HighlightModeManager
element.unmount();result.disposals+=2;// 1 for the old BuildOwner, 1 for the element