class ReflectionUtil {

    public static ParameterizedType getParametrizedType(Class<?> clazz) {
        Type[] genericTypes = clazz.getGenericInterfaces();
        for (Type type : genericTypes) {
            if (type instanceof ParameterizedType) {
                return (ParameterizedType) type;
            }

        }
        return null;
    }

    private  ReflectionUtil();

}