public QualifiedType<T> withAnnotationClasses(Iterable<Class<? extends Annotation>> newQualifiers) {
        Set<Annotation> annotations = StreamSupport.stream(newQualifiers.spliterator(), false)
            .map(AnnotationFactory::create)
            .collect(toUnmodifiableSet());
        return new QualifiedType<>(type, annotations);
    }
Creates a QualifiedType with the same type as this instance and new qualifiers. Old qualifiers are discarded.

@return a QualifiedType that has the same type as this instance, but with <b>only</b> the given qualifiers.

@param newQualifiers the qualifiers for the new qualified type.
core/src/main/java/org/jdbi/v3/core/qualifier/QualifiedType.java