void (@NotNull TransformationContext context) { GrTypeDefinition clazz = context.getCodeClass(); if (!hasGeneratedImplementations(clazz)) return; final LightMethodBuilder write = new LightMethodBuilder(clazz.getManager(), "writeExternal"); write.addParameter("out", ObjectOutput.class.getName()); write.addException(IOException.class.getName()); write.setOriginInfo("created by @AutoExternalize"); context.addMethod(write); final LightMethodBuilder read = new LightMethodBuilder(clazz.getManager(), "readExternal"); read.addParameter("oin", ObjectInput.class.getName()); read.setOriginInfo("created by @AutoExternalize"); context.addMethod(read); }