in teamcity-rest-client-impl/src/main/kotlin/org/jetbrains/teamcity/rest/syncBridge.kt [210:220]
override fun all(): Sequence<User> {
val id = id
val username = username
require(id == null || username == null) { "UserLocator accepts only id or username, not both" }
return when {
id != null -> sequenceOf(instance.user(id))
username != null -> sequenceOf(instance.user(username))
else -> delegate.allSeq().map(::UserBridge)
}
}