public override void VisitParameterList(ParameterListSyntax node) { if (node.IsParentKind(SyntaxKind.MethodDeclaration, SyntaxKind.LocalFunctionStatement)) { base.VisitParameterList(node); } }