private static Class<?> resolveParameterType(final Class<?> targetClass, final Method method) {
        // get the generic parametertypes of the method
        Type[] types = method.getGenericParameterTypes();

        // check for correct argument list length and type
        if ((types == null) || (types.length < 1)) {
            return null;
        }

        // get the actual type argument (expect the type to be a TypeVariable)
        return resolveType(targetClass, types[0]);
    }
resolves the parameter return type of the method
core/src/main/java/com/github/dozermapper/core/util/TypeResolver.java