findQualifier

fun List<Annotation>.findQualifier(errorContext: () -> String): Annotation?

Returns the single qualifier in the receiver list if there is one. Throws a MultipleQualifierError if there is more than one qualifier.