def METHOD_NAME(self):
    doc = FreeCADGui.getDocument(self.obj.Document)
    doc.Document.recompute()
    self.selectionWidget.setback_listobj_visibility()
    if self.selectionWidget.sel_server:
        FreeCADGui.Selection.removeObserver(self.selectionWidget.sel_server)
    doc.resetEdit()