for (final Method method : declaredMethods) {
int methodModifiers = method.getModifiers();
if ((Modifier.isPublic(methodModifiers) || Modifier.isProtected(methodModifiers))
|| (isSamePackage && !Modifier.isPrivate(methodModifiers))) {
if (!isOverridden(method, collected) && !Modifier.isAbstract(methodModifiers)) {
<BUG>if (methods.containsKey(method.getName())) {
methods.get(method.getName()).add(method);
continue;
}
methods.put(method.getName(), new HashSet<Method>() {{add(method);}});
}</BUG>
}

for (final Method method : declaredMethods) {
int methodModifiers = method.getModifiers();
if ((Modifier.isPublic(methodModifiers) || Modifier.isProtected(methodModifiers))
|| (isSamePackage && !Modifier.isPrivate(methodModifiers))) {
if (!isOverridden(method, collected) && !Modifier.isAbstract(methodModifiers)) {
Set<Method> eligibleMethods = methods.get(method.getName());
if (eligibleMethods == null) {
eligibleMethods = Sets.newHashSet();
methods.put(method.getName(), eligibleMethods);
