bool GetReadOnly() { return(xml.AncestorsAndSelf().Any(i => i.AnnotationOrCreate <ModelItemState>().ReadOnly ?? false)); }