private static SyntaxToken?GetOpenParenToken(SyntaxNode node, ISyntaxFacts syntaxFacts) { var invocationExpression = node.DescendantNodes().Where(syntaxFacts.IsInvocationExpression).FirstOrDefault(); if (invocationExpression is null) { return(null); } var argumentListNode = syntaxFacts.GetArgumentListOfInvocationExpression(invocationExpression); if (argumentListNode is null) { return(null); } syntaxFacts.GetPartsOfArgumentList(argumentListNode, out var openParenToken, out _, out _); return(openParenToken); }