text: public FSTCompletion(FST<Object> automaton, boolean higherWeightsFirst, boolean exactFirst) {this.automaton = automaton;if (automaton != null) {this.rootArcs = cacheRootArcs(automaton);} else {this.rootArcs = new Arc[0];}this.higherWeightsFirst = higherWeightsFirst;this.exactFirst = exactFirst;}