boolean (@NotNull Collection<? extends VirtualFile> roots) { //check if there are vcs roots strictly above the project dir return ContainerUtil.exists(roots, root -> VfsUtilCore.isAncestor(root, myProject.getBaseDir(), true)); }