TCommand MakeGetProtected() { if (!GetModifier.Any(x => x.Kind() == SyntaxKind.ProtectedKeyword)) { GetModifier = GetModifier.Add(SyntaxFactory.Token(SyntaxKind.ProtectedKeyword)); } GetModifier = GetModifier.Remove(SyntaxFactory.Token(SyntaxKind.PublicKeyword)); GetModifier = GetModifier.Remove(SyntaxFactory.Token(SyntaxKind.PrivateKeyword)); return((TCommand)this); }