def METHOD_NAME(self, id):
    if id != self._selected_object_id:
        self._selected_object_id = id
        self._node = Application.getInstance().getController().getScene().findObject(self._selected_object_id)
        if self._node:
            self._stack = self._node.callDecoration("getStack")
        self.visibilityChanged.emit()