}
private void applyReturnTypeOverride(SwaggerGlobalSettings swaggerGlobalSettings, HandlerMethod handlerMethod,
Map<Integer, ResponseMessage> byStatusCode) {
ResolvedType returnType = handlerReturnType(swaggerGlobalSettings.getTypeResolver(), handlerMethod);
returnType = swaggerGlobalSettings.getAlternateTypeProvider().alternateFor(returnType);
if (!Void.class.equals(returnType.getErasedType()) && !Void.TYPE.equals(returnType.getErasedType())) {
ResponseMessage responseMessage = byStatusCode.get(200);
String message = null;
if (responseMessage != null) {
message = coalese(responseMessage.message(), HttpStatus.OK.getReasonPhrase());
}