static Set<S> uniqNgrams(int n, Collection<S> lines) { new Set<S> set; for (S s : unnull(lines)) addAll(set, ngrams(n, s)); ret set; }