void (@NotNull List<String> paths, @NotNull Comparator<FilePath> comparator, boolean strict) { List<FilePath> filePaths = ContainerUtil.map(paths, it -> filePath(it)); List<FilePath> sortedFilePaths = ContainerUtil.sorted(filePaths, comparator); if (strict) { TreeSet<FilePath> pathsSet = new TreeSet<>(comparator); pathsSet.addAll(filePaths); assertEquals(filePaths.size(), pathsSet.size()); } assertEquals(filePaths, sortedFilePaths); assertComparisonContractNotViolated(filePaths, comparator); }