class CollectionFunctions {

    public static <T> Optional<T> simpleFindAny(Collection<T> list, Predicate<T> filterFn) {
        if (list == null || list.isEmpty()) {
            return empty();
        }
        return list.stream().filter(filterFn).findAny();
    }

    private  CollectionFunctions();

}