private ControllerAdviceBean getControllerAdviceBean(List<ControllerAdviceBean> controllerAdviceBeans, Object controllerAdvice) {
		return controllerAdviceBeans.stream()
				.filter(controllerAdviceBean -> (controllerAdviceBean.getBeanType() != null && controllerAdviceBean.getBeanType().isAssignableFrom(controllerAdvice.getClass())))
				.findFirst()
				.orElse(null);
	}
Gets controller advice bean.

@param controllerAdviceBeans the controller advice beans
@param controllerAdvice      the controller advice
@return the controller advice bean
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/service/GenericResponseService.java