private List findPhonemes(){
  Set set=new HashSet();
  for (int i=0; i < stateMachine.length; i++) {
    if (stateMachine[i] instanceof FinalState) {
      FinalState fstate=(FinalState)stateMachine[i];
      if (fstate.phoneList != null) {
        for (int j=0; j < fstate.phoneList.length; j++) {
          set.add(fstate.phoneList[j]);
        }
      }
    }
  }
  return new ArrayList(set);
}

private List findPhonemes ( ) { Set set = new HashSet ( ) ; for ( int i = 0 ; i < stateMachine . length ; i ++ ) { if ( stateMachine [ i ] instanceof FinalState ) { FinalState fstate = ( FinalState ) stateMachine [ i ] ; if ( fstate . phoneList != null ) { for ( int j = 0 ; j < fstate . phoneList . length ; j ++ ) { set . add ( fstate . phoneList [ j ] ) ; } } } } return new ArrayList ( set ) ; }
returns a list of all the phonemes used by the lts rules .
