private static void exportClear(Collection<Field> fieldSet, Writer out, int ind) throws IOException {
        out.write(ind(ind)+"@Override public void clear() {\n");
        for (Field field: fieldSet) {
            out.write(ind(ind+1)+setter(field.getName())+"(null);\n");
        }
        out.write(ind(ind)+"}\n\n");
    }
Exports the necessary overridden methods from Document/StructuredFieldValue
vespa-documentgen-plugin/src/main/java/com/yahoo/vespa/DocumentGenMojo.java