public bool BelongsToSameDocumentAs(ITextSourceVersion other) { var o = other as Version; return o != null && provider == o.provider; }