boolean (JavaMethod method) { final XmlName tagName = extractTagName(method, "add"); if (tagName == null) return false; final Type type = myCollectionChildrenTypes.get(tagName); if (type == null || !ClassUtil.getRawType(type).isAssignableFrom(method.getReturnType())) return false; if (method.getParameterCount() == 0) return true; return ADDER_PARAMETER_TYPES.containsAll(Arrays.asList(method.getParameterTypes())); }