private static Class<?> resolveReturnType(final Class<?> targetClass, final Method method) {
        // get the generic return type
        Type type = method.getGenericReturnType();

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