Added swagger response content type extraction

`if (method.responses)` would do the not-null-and-not-empty check at once