private static boolean containsFilesUnderVcs(@NotNull List<? extends VirtualFile> files, Project project) {
    if (files.isEmpty()) {
      return false;
    }

    ProjectLevelVcsManager projectLevelVcsManager = ProjectLevelVcsManager.getInstance(project);
    for (VirtualFile file : files) {
      if (projectLevelVcsManager.getVcsFor(file) != null) {
        return true;
      }
    }
    return false;
  }
private static boolean containsFilesUnderVcs(@NotNull List<? extends VirtualFile> files, Project project)