void (@NotNull VersionedStorageChange event) { for (EntityChange<ModuleEntity> change : event.getChanges(ModuleEntity.class)) { ModuleEntity entity = change.getOldEntity(); if (entity != null) { var module = ModuleEntityUtils.findModule(entity, event.getStorageBefore()); if (module != null) { DETECTED_ASSOCIATED_ENVS_CACHE.synchronous().invalidate(module); } } } }