private String formatMethodInList(ExecutableElement method) {
    return String.format(
        "\n  - %s.%s()",
        MoreElements.asType(method.getEnclosingElement()).getQualifiedName(),
        method.getSimpleName());
  }
An annotation processor that validates {@link
com.google.auto.value.extension.toprettystring.ToPrettyString} usage.
value/src/main/java/com/google/auto/value/extension/toprettystring/processor/ToPrettyStringValidator.java