contains

operator fun <ID : Any, T> Field<ID, T>.contains(value: T): Boolean

Check if the field contains the value, including the local value. If you need to exclude the local value, use instead:

value in field.withoutSelf().values