public static IEnumerable <T> GetAnnotatedNodes <T>(this SyntaxNode node, SyntaxAnnotation syntaxAnnotation) where T : SyntaxNode { return(node.GetAnnotatedNodesAndTokens(syntaxAnnotation).OfType <T>()); }