long start = System.nanoTime();
TIntHashSet localTrigrams = lexText(buf);
stats.time += System.nanoTime() - start;
stats.maxtrigrams = Math.max(stats.maxtrigrams, localTrigrams.size());
int[] graphs = localTrigrams.toArray();
stats.allTrigrams.addAll(graphs);
for (int graph : graphs) {
List<File> list = stats.filesMap.get(graph);
if (list == null) {
list = new ArrayList<File>();