class TypeParameterResolver {

    public static Type resolveReturnType(Method method, Type srcType) {
        // 获取返回值类型
        Type returnType = method.getGenericReturnType();
        // 获取方法的类型
        Class<?> declaringClass = method.getDeclaringClass();
        return resolveType(returnType, srcType, declaringClass);
    }

    private  TypeParameterResolver();

}