public <A extends Annotation> A getAnyAnnotation(Class<A> acls) {
			A anyForSerializationAnnotation = getAnyAnnotation(forSerialization, acls);
			A anyForDeserializationAnnotation = getAnyAnnotation(forDeserialization, acls);

			return anyForSerializationAnnotation != null ? anyForSerializationAnnotation : anyForDeserializationAnnotation;
		}
Retrieves an annotation of the specified type from either the serialization or
deserialization property definition (field, getter, setter), returning the first available match.
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/converters/PolymorphicModelConverter.java