docs: private void ensureCapacity() {
      if (size < resourceIds.length) {
        return;
      }
      int newCapacity = (resourceIds.length * 3) / 2 + 1;
      // Increase size of resourceIds
      String[] oldResourceIds = resourceIds;
      resourceIds = new String[newCapacity];
      System.arraycopy(oldResourceIds, 0, resourceIds, 0, oldResourceIds.length);
      // Increase size of blockData
      int[] oldBlockData = blockData;
      blockData = new int[newCapacity * blockInts];
      System.arraycopy(oldBlockData, 0, blockData, 0, oldBlockData.length);
      // Increase size of byResourceIndices (no need to copy old, because would be restored in method ensureSorted)
      resourceIdsIndex = new int[newCapacity];
      sorted = false;
    }