private SyntaxNode?GetContainer(SyntaxNode root, SyntaxNode node) { return(_syntaxFacts.GetContainingMemberDeclaration(root, node.SpanStart) ?? _syntaxFacts.GetContainingTypeDeclaration(root, node.SpanStart)); }