boolean (@NotNull Collection<? extends VirtualFile> roots) { HgRepositoryManager hgRepositoryManager = HgUtil.getRepositoryManager(myProject); return roots.stream().allMatch(r -> hgRepositoryManager.getRepositoryForRootQuick(r) != null); }