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);
}
}