String signature = createSignature(method);
List<String> reflectionCode = createReflectionCode(genCtx, method);
//create the composite object to send to the template
final MethodComposite composite = new MethodComposite();
composite.setMethod(method);
composite.setName(method.getName());
composite.setParamClasses(paramClassList);
composite.setParamNames(paramNameList);
composite.setReflectionCode(reflectionCode);
composite.setSignature(signature);
//if the super method is not the same as us, grab the data from that also
final PsiMethod[] superMethods = method.findSuperMethods();
if (superMethods.length > 0) {
composite.setBase(toComposite(genCtx, superMethods[0]));
}
return composite;
}