presto-main/src/main/java/io/prestosql/util/MoreLists.java/MoreLists/filteredCopy
class MoreLists:    public static <T> List<T> filteredCopy(Iterable<T> elements, Predicate<T> predicate)
    {
        requireNonNull(elements, "elements is null");
        requireNonNull(predicate, "predicate is null");
        return stream(elements)
                .filter(predicate)
                .collect(toImmutableList());
    }