types.add(arg.getType());
}
MetaMethod method = classDefinition.getSuperClass()
.getBestMatchingMethod(name, types.toArray(new MetaClass[args.length]));
if (method == null)
throw new UndefinedMethodException("Method not found:" + name + "(" + types + ")");
return publicOverridesMethod(method, DefParameters.from(method, args));
}