public static bool AssignsToParameter(this MethodDeclarationSyntax methodDeclaration, ParameterSyntax parameter) => methodDeclaration != null && methodDeclaration.AssignsToIdentifier(SharedSyntaxFactory.IdentifierName(parameter));
public static bool AssignsToParameter(this MethodDeclarationSyntax methodDeclaration, ParameterSyntax parameter) => methodDeclaration.AssignsToIdentifier(IdentifierName(parameter));