if (!(method instanceof MethodWithNodes)) {
throw module.getRuntime().newRuntimeError("can only truffelize methods where JRuby can provide the nodes for us");
}
final MethodWithNodes methodWithNodes = (MethodWithNodes) method;
final MethodNodes methodNodes = methodWithNodes.getMethodNodes();
if (methodNodes == null || methodNodes.getArgsNode() == null || methodNodes.getBodyNode() == null) {
throw module.getRuntime().newRuntimeError("can only truffelize methods where JRuby can provide the nodes for us");
}