docs: public int[] otherOccurrences(Entity entity){
      List<Integer> other = new ArrayList<Integer>();
      for (int i = 0; i < doc.size(); i++) {
        if (i == entity.startPosition) { continue; }
        if (matches(entity, i)) {
          other.add(Integer.valueOf(i));
        }
      }
      return toArray(other);
    }