code: public static String descriptor(Type type, Types types) {
      SigGen sig = new SigGen(types);
      sig.assembleSig(types.erasure(type));
      return sig.toString();
    }
docs: Returns a JVMS 4.3.3 method descriptor.