if (method.getGenericParameterTypes() != null) {
MetaType[] genTypes = method.getGenericParameterTypes();
for (int i = 0; i < genTypes.length; i++) {
if (genTypes[i] instanceof MetaParameterizedType) {
if (parameters[i] instanceof MetaClass) {
MetaType type = ((MetaParameterizedType) genTypes[i]).getTypeParameters()[0];
if (type instanceof MetaTypeVariable) {
writer.recordTypeParm(((MetaTypeVariable) type).getName(), (MetaClass) parameters[i]);
}
}
}