JavaFileObject sourceFile = filer.createSourceFile(generatedClassName);
StephenerializationPreprocessorFieldGenerator generator = new StephenerializationPreprocessorFieldGenerator();
Set<StephenerializationPreprocessorField> fields = generator.generateFields(element);
PreprocessingWriter w = new PreprocessingWriter(sourceFile.openWriter());
writePackageImportsAndClass(w, element, simpleGeneratedClassName);
w.indent();
writeWriteMethod(w, className, fields, stephenerializable);