public static Type resolveType(Type type, Type contextType) {
        return GenericTypeReflector.resolveType(type, contextType);
    }
Resolves the {@code type} parameter in the context of {@code contextType}. For example, if
{@code type} is {@code List.class.getMethod("get", int.class).getGenericReturnType()}, and
{@code contextType} is {@code List<String>}, this method returns {@code String.class}
@param type the type to be resolved in the scope of <code>contextType</code>
@param contextType the context type in which <code>type</code> is interpreted to resolve the type.
@return the resolved type.
core/src/main/java/org/jdbi/v3/core/generic/GenericTypes.java