boolean (final JavaMethod method) { boolean setter = method.getName().startsWith("set") && method.getGenericParameterTypes().length == 1 && method.getReturnType() == void.class; return setter && (hasTagValueAnnotation(method) || "setValue".equals(method.getName())); }