code: private static void definePrepareBridge(ClassFile cf, Class leaf, Class returnClass) {
          TypeDesc returnType = TypeDesc.forClass(returnClass);
  
          if (isPublicMethodFinal(leaf, PREPARE_METHOD_NAME, returnType, null)) {
              // Cannot override.
              return;
          }
  
          MethodInfo mi = cf.addMethod(Modifiers.PUBLIC.toBridge(true),
                                       PREPARE_METHOD_NAME, returnType, null);
          CodeBuilder b = new CodeBuilder(mi);
          b.loadThis();
          b.invokeVirtual(PREPARE_METHOD_NAME, cf.getType(), null);
          b.returnValue(returnType);
      }
docs: Add a prepare bridge method to the classfile for the given type.
  
  @param cf file to which to add the prepare bridge
  @param leaf leaf class
  @param returnClass type returned from generated bridge method
  @since 1.2