public static Map<String, MetaClass> determineTypeVariables(MetaMethod method) {
HashMap<String, MetaClass> typeVariables = new HashMap<String, MetaClass>();
int methodParmIndex = 0;
for (MetaType methodParmType : method.getGenericParameterTypes()) {
MetaParameter parm = method.getParameters()[methodParmIndex];
resolveTypeVariable(typeVariables, methodParmType, parm.getType());
methodParmIndex++;
}
return typeVariables;
}