presto-main/src/main/java/io/prestosql/connector/system/jdbc/FilterUtil.java/FilterUtil/emptyOrEquals
class FilterUtil:    public static <T> boolean emptyOrEquals(Optional<T> value, T other)
    {
        return !value.isPresent() || value.get().equals(other);
    }