private void disposeRemovedSegments(@Nullable PagedFileStorage verificationStorage) {
    assertUnderSegmentAllocationLock();

    if (pagesToRemoveByPageId.isEmpty()) {
      return;
    }

    ObjectIterator<DirectBufferWrapper> iterator = pagesToRemoveByPageId.values().iterator();
    while (iterator.hasNext()) {
      try {
        DirectBufferWrapper wrapper = iterator.next();
        boolean released = wrapper.tryRelease(wrapper.getFile() == verificationStorage);
        if (released) {
          iterator.remove();
        }
      }
      catch (IOException e) {
        LOG.error(e);
      }
    }
  }
private void disposeRemovedSegments(@Nullable PagedFileStorage verificationStorage)