Use ClassNode.findSAM to find the single abstract method.
Replace fragile test for MethodNode.isScriptBody with a flag.