private void generateSourceFile(Element originatingElement, String className, String extending, List<String> implementing, List<FieldData> fields,
List<ExecutableElement> methodsToCopy, Relations relations) throws IOException {
JavaFileObject file = processingEnv.getFiler().createSourceFile(className, originatingElement);
Writer out = file.openWriter();
out.write("//Generated by lombok.ast.template.TemplateProcessor. DO NOT EDIT, DO NOT CHECK IN!\n\n");
String pkgName, typeName; {
int idx = className.lastIndexOf('.');
if (idx == -1) {