boolean (final Collection<? extends FilePath> roots, final File root) { for (FilePath filePath : roots) { final File ioFile = filePath.getIOFile(); if (FileUtil.isAncestor(ioFile, root, true)) { return true; } } return false; }