code: private int[] getIndexes() {
      int[] res = new int[this.indexes.size()];
      int i = 0;
      for (Integer idx : this.indexes) {
        res[i] = idx;
        i++;
      }
      return res;
    }
docs: Get all the rule occurrences.
  
  @return all the rule occurrences.