code: public static FSA build(byte[][] input) {
      final FSABuilder builder = new FSABuilder();
  
      for (byte[] chs : input) {
        builder.add(chs, 0, chs.length);
      }
  
      return builder.complete();
    }
docs: Build a minimal, deterministic automaton from a sorted list of byte
  sequences.
  
  @param input Input sequences to build automaton from.
  @return Returns the automaton encoding all input sequences.