presto-jdbc/src/main/java/io/prestosql/jdbc/AbstractConnectionProperty.java/AbstractConnectionProperty/checkedPredicate
class AbstractConnectionProperty:    protected static <T> Predicate<T> checkedPredicate(CheckedPredicate<T> predicate)
    {
        return t -> {
            try {
                return predicate.test(t);
            }
            catch (SQLException e) {
                return false;
            }
        };
    }