public static bool DescendantsNotContain <T>(this CSharpSyntaxNode node, string text) where T : CSharpSyntaxNode { return(node.Descendants <T>().All(child => !ContainsIgnoreWhitespace(child.ToFullString(), text))); }