I would like to extend javax.enterprise.inject.spi.InjectionPoint for easier analysis of both static and dynamic qualifiers.
I have previously used InjectionPoint.getAnnotated(), but have now realised that this is not enough because it cannot include AnnotationLiteral qualifiers added via Instance.select(...). The only reliable way to analyse all of the qualifiers is currently via InjectionPoint.getQualifiers(), which unfortunately returns Set<Annotated>.
A Set<Annotated>> is not immediately useful to me; about the only thing that I can do with it is iterate over it every time. So I must convert it into something more like this first:
However, it would be much more convenient if InjectionPoint could export this functionality automatically instead: