docs: @Override
    public Collection<Block> getByResourceId(String resourceId) {
      ensureSorted();
  
      // prepare resourceId for binary search
      resourceIds[size] = resourceId;
      resourceIdsIndex[size] = size;
  
      int index = DataUtils.binarySearch(byResourceId);
  
      List<Block> result = new ArrayList<>();
      int realIndex = resourceIdsIndex[index];
      while (index < size && FastStringComparator.INSTANCE.compare(resourceIds[realIndex], resourceId) == 0) {
        result.add(getBlock(realIndex, resourceId));
  
        index++;
        realIndex = resourceIdsIndex[index];
      }
      return result;
    }