Set<AbstractVcs> (@NotNull Collection<? extends FilePath> files, @NotNull Project project) { ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(project); return ContainerUtil.map2SetNotNull(files, file -> vcsManager.getVcsFor(file)); }