@Override
  public void rootsChanged(@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) {
        BuildManager.getInstance().clearState((Project)source);
      }
    }
  }
@Override
  public void rootsChanged(@NotNull ModuleRootEvent event)