Fix with `if(isWriteable(collection) && isWriteable(other) && is same type) {` "is same type" can be done by testing equality on `clear()`ed `collection` and `other`
Fix with
if(isWriteable(collection) && isWriteable(other) && is same type) {"is same type" can be done by testing equality on
clear()edcollectionandother