def METHOD_NAME(self, worker):
    if worker is self._worker:
        return
    if self._worker is not None:
        self._worker.set_current_job(None)
    self._worker = worker
    if worker is not None:
        worker.set_current_job(self)