static boolean isPrefixedGetter(ExecutableElement method) {
    String name = method.getSimpleName().toString();
    // Note that getfoo() (without a capital) is still a getter.
    return (name.startsWith("get") && !name.equals("get"))
        || (name.startsWith("is")
            && !name.equals("is")
            && method.getReturnType().getKind() == TypeKind.BOOLEAN);
  }
Returns the subset of the given zero-arg methods whose names begin with {@code get}. Also
includes {@code isFoo} methods if they return {@code boolean}. This corresponds to JavaBeans
conventions.
value/src/main/java/com/google/auto/value/processor/AutoValueishProcessor.java