def METHOD_NAME(self):
    if self._obj.References != self._selectionWidget.references:
        self._obj.References = self._selectionWidget.references
    self._applyWidgetChanges()
    self._obj.Document.recompute()
    FreeCADGui.ActiveDocument.resetEdit()
    self._restoreVisibility()
    return True