protected function emitPackageStatesUpdated()
{
if ($this->bootstrap === null) {
return;
}
if ($this->dispatcher === null) {
$this->dispatcher = $this->bootstrap->getEarlyInstance(Dispatcher::class);
}
$this->dispatcher->dispatch(PackageManager::class, 'packageStatesUpdated');
}