class CollectionFunctions {

    public static <T> List<T> flattenOptional(Collection<Optional<T>> toFlatten){
        return  simpleMap(simpleFilter(toFlatten, Optional::isPresent), Optional::get);
    }

    private  CollectionFunctions();

}