private IEnumerable <MethodDeclarationSyntax> SearchForTooLongFunctions(Document document)
        {
            var metricCalculator   = new MetricCalculator();
            var methodDeclarations = _documentWalker.GetNodesFromDocument <MethodDeclarationSyntax>(document);

            return(methodDeclarations
                   .Where(declaration => metricCalculator.CalculateLinesOfCode(declaration) > MaxFunctionLOC));
        }
 private IEnumerable<MethodDeclarationSyntax> SearchForTooLongFunctions(Document document)
 {
     var metricCalculator = new MetricCalculator();
     var methodDeclarations = _documentWalker.GetNodesFromDocument<MethodDeclarationSyntax>(document);
     return methodDeclarations
         .Where(declaration => metricCalculator.CalculateLinesOfCode(declaration) > MaxFunctionLOC);
 }