def METHOD_NAME(self, dropdown, _pspec):
    if id := dropdown.get_selected_item().value:
        element = self.subject.model.lookup(id)
        assert isinstance(element, UML.Behavior)
        self.subject.entry = element
    else:
        del self.subject.entry