private void collectWebhooksFromElement(AnnotatedElement element, List<Webhooks> collector) {
		// If @Webhooks is present (container)
		Webhooks container = element.getAnnotation(Webhooks.class);
		if (container != null) {
			collector.add(container);
		}

		// If individual @Webhook annotations are present
		Webhook[] individualWebhooks = element.getAnnotationsByType(Webhook.class);
		if (individualWebhooks.length > 0) {
			collector.add(new Webhooks() {
				@Override
				public Webhook[] value() {
					return individualWebhooks;
				}

				@Override
				public Class<? extends Annotation> annotationType() {
					return Webhooks.class;
				}
			});
		}
	}
Collect webhooks from element.

@param element   the element
@param collector the collector
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/service/OpenAPIService.java