Use InteractiveChecker.InvalidateConfiguration instead of InvalidateAll if a project changed