private void ensureParentDirectoryExists() throws IOException {
    Path parentDir = storage.getFile().getParent();
    Files.createDirectories(parentDir);
  }
private void ensureParentDirectoryExists()