public void calculateHeadersForClass(Class<?> declaringClass) {
		RequestMapping reqMappingClass = AnnotatedElementUtils.findMergedAnnotation(declaringClass, RequestMapping.class);
		if (reqMappingClass != null) {
			fillMethods(reqMappingClass.produces(), reqMappingClass.consumes(), reqMappingClass.headers());
		}
	}
Calculate headers for class.

@param declaringClass the declaring class
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/models/MethodAttributes.java