protected boolean isCompatible(Taxa taxa,List<Taxon> availableTaxa){
  for (int i=0; i < taxa.getTaxonCount(); i++) {
    Taxon taxon=taxa.getTaxon(i);
    if (!availableTaxa.contains(taxon)) {
      return false;
    }
  }
  return true;
}

protected boolean isCompatible ( Taxa taxa , List < Taxon > availableTaxa ) { for ( int i = 0 ; i < taxa . getTaxonCount ( ) ; i ++ ) { Taxon taxon = taxa . getTaxon ( i ) ; if ( ! availableTaxa . contains ( taxon ) ) { return false ; } } return true ; }
returns true if taxa are all found in availabletaxa
