queue.add(new Path<>(0, fst .getFirstArc(new FST.Arc<T>()), fst.outputs.getNoOutput(), new IntsRefBuilder())); newInput.copyInts(currentInput.get()); newInput.append(t.min); queue.add(new Path<>(t.dest, new FST.Arc<T>() .copyFrom(nextArc), fst.outputs .add(path.output, nextArc.output), newInput)); newInput.copyInts(currentInput.get()); newInput.append(nextArc.label); queue.add(new Path<>(t.dest, new FST.Arc<T>() .copyFrom(nextArc), fst.outputs .add(path.output, nextArc.output), newInput));