code: public static void definePrepareBridges(ClassFile cf, Class leaf) {
          for (Class c : gatherAllBridgeTypes(new HashSet<Class>(), leaf)) {
              if (c != Object.class) {
                  definePrepareBridge(cf, leaf, c);
              }
          }
      }
docs: Add prepare bridge methods for all classes/interfaces between the leaf
  (genericised class) and the root (genericised baseclass).
  
  @param cf file to which to add the prepare bridge
  @param leaf leaf class
  @since 1.2