private static boolean areRootsUnderGitWithInitialCommit(@NotNull Collection<? extends VirtualFile> roots,
                                                           @NotNull GitRepositoryManager gitRepositoryManager) {
    return ContainerUtil.all(roots, root -> {
      GitRepository gitRepository = gitRepositoryManager.getRepositoryForRoot(root);
      if (gitRepository == null) {
        return false;
      }
      if (gitRepository.getCurrentRevision() == null) {
        return false;
      }
      return true;
    });
  }
private static boolean areRootsUnderGitWithInitialCommit(@NotNull Collection<? extends VirtualFile> roots,
                                                           @NotNull GitRepositoryManager gitRepositoryManager)