private Set<StringSuffix> collectSuffixes(TreeNode tn) { TreeSet<StringSuffix> set = new TreeSet<StringSuffix>(); tn.collectSuffixes(set); return set; }