private static MethodSpec indentMethod() {
    return methodBuilder(INDENT_METHOD_NAME)
        .addModifiers(PRIVATE, STATIC)
        .returns(ClassName.get(String.class))
        .addParameter(TypeName.INT, "level")
        .addStatement("$1T builder = new $1T()", StringBuilder.class)
        .beginControlFlow("for (int i = 0; i < level; i++)")
        .addStatement("builder.append($S)", INDENT)
        .endControlFlow()
        .addStatement("return builder.toString()")
        .build();
  }
Generates implementations of {@link
com.google.auto.value.extension.toprettystring.ToPrettyString} annotated methods in {@link
com.google.auto.value.AutoValue} types.
value/src/main/java/com/google/auto/value/extension/toprettystring/processor/ToPrettyStringExtension.java