withType

abstract fun <S : T?> withType(type: Class<S>): NamedDomainObjectCollection<S>(source)