code: public function onUpdate(ResourceEventInterface $event)
      {
          $address = $this->getAddressFromEvent($event);
  
          if ($this->persistenceHelper->isChanged($address, 'country')) {
              $this->scheduleSaleAddressChangeEvent($address);
          }
      }
docs: Update event handler.
  
  @param ResourceEventInterface $event