private boolean isUnique(TaxonList taxonList, Tree tree, NodeRef node) { Set<String> taxa = Tree.Utils.getDescendantLeaves(tree, node); int count = 0; for (String taxon : taxa) { count += (taxonList.getTaxonIndex(taxon) >= 0 ? 1 : 0); // System.out.print(taxon + "\t"); } boolean unique = (count == 0) || (count == taxa.size()); // System.out.println(count + "\t" + unique); return unique; }