void (@NotNull ModuleRootEvent event) { if (!event.isCausedByWorkspaceModelChangesOnly()) { // only process events that are not covered by events from the workspace model final Object source = event.getSource(); if (source instanceof Project) { getInstance().clearState((Project)source); } } }