@NotNull public List<String> filterPaths(@NotNull List<String> paths) { if (isIncludeAll()) return paths; final Collection<PathNode> files = AntPatternTreeMatcher.scan(createPathTree(paths), myIncludePatterns, myExcludePatterns, AntPatternTreeMatcher.ScanOption.LEAFS_ONLY); return CollectionsUtil.convertCollection(files, PathNode::getPath); }