private static void writeStorageToDisk(String[] idToName,
                                         @NotNull Path file,
                                         @NotNull Charset charset) {
    try {
      //Don't create folder/file here -- create (if not exist) the file only once, in ctor, and
      // after that -- fail if folder/file doesn't exist, because that means folder/file was removed,
      // which is very suspicious case and shouldn't be silently 'fixed':
      Files.write(file, Arrays.asList(idToName), charset, WRITE);
    }
    catch (IOException e) {
      if (Files.notExists(file)) {
        throw new UncheckedIOException("Can't store enumerator to " + file + " -- file is removed?", e);
      }
      throw new UncheckedIOException("Can't store enumerator to " + file, e);
    }
  }
private static void writeStorageToDisk(String[] idToName,
                                         @NotNull Path file,
                                         @NotNull Charset charset)