Optional<Stream<String>> () { return myDirtyOutputPaths.isEmpty() ? Optional.empty() : Optional.of(myDirtyOutputPaths.stream().map(supplier -> supplier.get()).flatMap(Collection::stream).distinct()); }