this looks wrong because of 

```php
if (!$operation instanceof InstallOperation) {
    return;
}
```