protected void doClose() throws IOException {
    IOCancellationCallbackHolder.INSTANCE.interactWithUI();

    getWriteLock().lock();
    try {
      try {
        force();
        myKeyStorage.close();
      }
      finally {
        myCollisionResolutionStorage.close();
      }
    }
    finally {
      getWriteLock().unlock();
    }
  }
protected void doClose()