void (@NotNull VersionedStorageChange event) { boolean needFSRescan = processEntityChanges(event, SourceRootEntity.class, ChangeProcessor.anyChange(true, false)) || processEntityChanges(event, ModuleEntity.class, (before, after) -> before.getDependencies().equals(after.getDependencies()), ChangeProcessor.anyChange(true, false)) || processEntityChanges(event, JavaModuleSettingsEntity.class, ChangeProcessor.anyChange(true, false)); if (needFSRescan) { getInstance().clearState(myProject); } else if (event.getAllChanges().iterator().hasNext()) { getInstance().cancelPreloadedBuilds(getProjectPath(myProject)); } }