// Setup adapters for merging, remapping class names and class writing. This is done in reverse order of how they
// will be evaluated.
ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES);
RemapClasses re = new RemapClasses(set);
ClassVisitor remappingAdapter = new RemappingClassAdapter(cw, re);
ClassVisitor visitor = remappingAdapter;
if(generatedClass != null){
visitor = new MergeAdapter(set, remappingAdapter, generatedClass);
}
ClassReader tReader = new ClassReader(precompiledClass);