private void updateContentForFile(int fileId,
                                    @NotNull ByteArraySequence newContent) throws IOException {
    //VFS content storage is append-only, hence storing could be done outside the lock:
    int newContentId = vfsPeer.writeContentRecord(newContent);

    myInputLock.writeLock().lock();
    try {
      updateContentId(fileId, newContentId, newContent.length());
    }
    finally {
      myInputLock.writeLock().unlock();
    }
  }
private void updateContentForFile(int fileId,
                                    @NotNull ByteArraySequence newContent)