}
return new SwaggerModelType(typeName, mp, requiredFields);
}
protected static Class<?> getReturnType(Method method) {
ReturnType annotation = method.getAnnotation(ReturnType.class);
if (annotation != null) {
return annotation.value();
}
return method.getReturnType();
}