byte[] (String name, String method) { return new ByteBuddy() .subclass(Object.class).modifiers(Opcodes.ACC_PUBLIC).name(name) .defineMethod(method, void.class, Opcodes.ACC_PUBLIC | Opcodes.ACC_STATIC).intercept(StubMethod.INSTANCE) .make().getBytes(); }