sw.outdent();
sw.println("}");
boolean allowNonVoid = sourceType.getAnnotation(AllowNonVoid.class) != null;
for (JMethod method : paramType.getOverridableMethods()) {
DefaultValue defaults = getDefaultValue(sourceType, method);
if (method.getReturnType() != JPrimitiveType.VOID && !allowNonVoid) {
logger.log(TreeLogger.ERROR, "The method " + method.getName()
+ " returns a type other than void, but "
+ sourceType.getQualifiedSourceName() + " does not define the "