public QualifiedType<T> withAnnotations(Iterable<? extends Annotation> newQualifiers) {
        return new QualifiedType<>(type, StreamSupport.stream(newQualifiers.spliterator(), false).collect(toUnmodifiableSet()));
    }
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