private void fillMethods(String[] produces, String[] consumes, String[] headers) {
		if (ArrayUtils.isNotEmpty(produces)) {
			methodProduces = mergeArrays(methodProduces, produces);
		}
		else if (ArrayUtils.isNotEmpty(classProduces)) {
			methodProduces = mergeArrays(methodProduces, classProduces);
		}
		else if (ArrayUtils.isEmpty(methodProduces)) {
			methodProduces = new String[] { defaultProducesMediaType };
		}

		if (ArrayUtils.isNotEmpty(consumes)) {
			methodConsumes = mergeArrays(methodConsumes, consumes);
		}
		else if (ArrayUtils.isNotEmpty(classConsumes)) {
			methodConsumes = mergeArrays(methodConsumes, classConsumes);
		}
		else if (ArrayUtils.isEmpty(methodConsumes)) {
			methodConsumes = new String[] { defaultConsumesMediaType };
		}

		setHeaders(headers);
	}
Fill methods.

@param produces the produces
@param consumes the consumes
@param headers  the headers
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/models/MethodAttributes.java