This is now in `FindInFilesResults.prototype._getSearchMatches`. We could just move it to `SearchResults` if we want to use it with replace in files.