private static @CheckForNull
    TypeQualifierAnnotation findMatchingTypeQualifierAnnotation(Collection<TypeQualifierAnnotation> typeQualifierAnnotations,
            TypeQualifierValue<?> typeQualifierValue) {
        for (TypeQualifierAnnotation typeQualifierAnnotation : typeQualifierAnnotations) {
            if (typeQualifierAnnotation.typeQualifier.equals(typeQualifierValue)) {
                return typeQualifierAnnotation;
            }
        }
        return null;
    }
private static @ CheckForNull TypeQualifierAnnotation findMatchingTypeQualifierAnnotation ( Collection < TypeQualifierAnnotation > typeQualifierAnnotations , TypeQualifierValue < ? > typeQualifierValue ) { for ( TypeQualifierAnnotation typeQualifierAnnotation : typeQualifierAnnotations ) { if ( typeQualifierAnnotation . typeQualifier . equals ( typeQualifierValue ) ) { return typeQualifierAnnotation ; } } return null ; }
Look up a TypeQualifierAnnotation matching given TypeQualifierValue.

@param typeQualifierAnnotations
a Collection of TypeQualifierAnnotations
@param typeQualifierValue
a TypeQualifierValue
@return matching TypeQualifierAnnotation, or null if none