private static boolean isFileUnderSameVcsRoot(@NotNull Project project, @NotNull VirtualFile vcsRoot, @NotNull VirtualFile file) {
    VirtualFile fileVcsRoot = VcsUtil.getVcsRootFor(project, file);
    return fileVcsRoot != null && vcsRoot.equals(fileVcsRoot);
  }
private static boolean isFileUnderSameVcsRoot(@NotNull Project project, @NotNull VirtualFile vcsRoot, @NotNull VirtualFile file)