Method jmethod = getMethodFromClass(runtime, proxyClass, name, argTypesClasses);
String prettyName = name + CodegenUtils.prettyParams(argTypesClasses);
if (Modifier.isStatic(jmethod.getModifiers())) {
MethodInvoker invoker = new StaticMethodInvoker(rubyClass, jmethod);
return RubyMethod.newMethod(rubyClass, prettyName, rubyClass, name, invoker, proxyClass);
} else {
MethodInvoker invoker = new InstanceMethodInvoker(rubyClass, jmethod);
return RubyUnboundMethod.newUnboundMethod(rubyClass, prettyName, rubyClass, name, invoker);
}