public boolean hasChanges(@NotNull final Project project) {
    final Set<VirtualFile> directories = BaseProjectDirectories.getBaseDirectories(project);
    return ContainerUtil.exists(directories, it -> hasChanges(it, project));
  }
public boolean hasChanges(@NotNull final Project project)