code: public void setTransitions(int state,
                                 int inputIdx,
                                 Collection<? extends Integer> successors) { // TODO: replace by primitive specialization
          int transIdx = toMemoryIndex(state, inputIdx);
          //TIntSet succs = transitions[transIdx];
          Set<Integer> succs = transitions[transIdx]; // TODO: replace by primitive specialization
          if (succs == null) {
              //succs = new TIntHashSet(successors);
              succs = Sets.newHashSetWithExpectedSize(successors.size()); // TODO: replace by primitive specialization
              transitions[transIdx] = succs;
          } else {
              succs.clear();
          }
          succs.addAll(successors);
      }
docs: public void setTransitions(int state, int inputIdx, TIntCollection successors) {