public RowMappers register(RowMapper<?> mapper) {
        RowMapperFactory factory = inferenceInterceptors.process(mapper);

        return this.register(factory);
    }
Register a row mapper which will have its parameterized type inspected to determine what it maps to.
Will be used with {@link Query#mapTo(Class)} for registered mappings.
<p>
The parameter must be concretely parameterized, we use the type argument T to
determine if it applies to a given type.
<p>
{@link java.lang.Object} is not supported as a concrete parameter type.

@param mapper the row mapper
@return this
@throws UnsupportedOperationException if the RowMapper is not a concretely parameterized type
core/src/main/java/org/jdbi/v3/core/mapper/RowMappers.java