private static void addIfNotLastItem(IntList attrAndLookupBounds, int offset) {
    if (attrAndLookupBounds.isEmpty() || attrAndLookupBounds.getInt(attrAndLookupBounds.size() - 1) != offset) {
      attrAndLookupBounds.add(offset);
    }
  }
private static void addIfNotLastItem(IntList attrAndLookupBounds, int offset)