}
return null;
}
private static Type[] getActualTypeArguments(Type type) {
Type resolvedType = new HierarchyDiscovery(type).getResolvedType();
if (resolvedType instanceof ParameterizedType) {
return ((ParameterizedType) resolvedType).getActualTypeArguments();
} else {
return new Type[] {};
}