This function was divided in 3 pieces, which start in `FindInFilesResults.prototype.showResults`.