public void setName(int fileId, @NotNull String name) {
    try {
      checkNotClosed();
      int nameId = getNameId(name);

      int previousNameId = connection.getRecords().updateNameId(fileId, nameId);
      connection.markDirty();

      invertedNameIndexLazy.get().updateFileName(fileId, nameId, previousNameId);
      invertedNameIndexModCount.incrementAndGet();
    }
    catch (IOException e) {
      throw handleError(e);
    }
  }
public void setName(int fileId, @NotNull String name)