FileFilter (final List<? extends FileFilter> filters) { if (filters == null || filters.isEmpty()) return null; return pathname -> { for (FileFilter filter : filters) { if (filter.accept(pathname)) { return true; } } return false; }; }