Description
After https://github.com/ckeditor/ckeditor5-engine/issues/1663 Range, Position, Marker and perhaps something else will still miss this method. Let's add it.
Also, lets remove as many instanceof
checks from packages other than engine.
One remaining thing to check would be how often we use instanceof
to distinguish between model and view things. Perhaps we could also have is( 'view:element' )
and secure our code a bit with this.