@SuppressWarnings("unchecked")
    public <T> Optional<RowMapper<T>> findFor(Class<T> type) {
        RowMapper<T> mapper = (RowMapper<T>) findFor((Type) type).orElse(null);
        return Optional.ofNullable(mapper);
    }
Obtain a mapper for the given type. If a row mapper is registered for the
given type, it is returned. If a column mapper is registered for the
given type, it is adapted into a row mapper, mapping the first column of
the result set. If neither a row or column mapper is registered, empty is
returned.

@param <T>  the type of the mapper to find
@param type the target type to map to
@return a mapper for the given type, or empty if no row or column mapper
is registered for the given type.
core/src/main/java/org/jdbi/v3/core/mapper/Mappers.java