public function onAfterDelete()
 {
     if ($this->owner->getParentType() === 'root') {
         WhitelistGenerator::generateWhitelist();
     }
 }