AnnotatedTypeMetadata has various methods for finding annotations; however, it currently does not provide explicit support for merged repeatable annotations.

Although it is possible to craft a query for repeatable annotations using the MergedAnnotations API via getAnnotations(), that requires intimate knowledge of the MergedAnnotations API as well as the structure of repeatable annotations.

Furthermore, the bugs reported in #30941 result from the fact that AnnotationConfigUtils attempts to use the existing functionality in AnnotatedTypeMetadata to find repeatable annotations without success.

In light of that, we should introduce a getMergedRepeatableAnnotationAttributes() method in AnnotatedTypeMetadata with dedicated support for repeatable annotations.