private IEnumerable<IInvocationExpression> GetAllMatchedExpressions(ITreeNode element)
{
var invocationExpression = element as IInvocationExpression;
if (invocationExpression == null)
{
return EmptyList<IInvocationExpression>.InstanceList;
}
return invocationExpression.GetAllExpressions().Where(expression => matcher.QuickMatch(expression));
}