private CSharp Refresh(CodeContext context) { if (Document == context.Document && ModelClass.Contains(context.CurrentSyntaxNode)) { return(this); } var modelClass = context.FindClassDeclaration <ClassDeclarationSyntax>(KnownTypes.Model, out var modelType); if (modelClass == null) { return(null); } Update(context, modelClass, modelType); return(this); }