private void updateContentId(int fileId,
                               int newContentRecordId,
                               int newContentLength) throws IOException {
    PersistentFSConnection connection = vfsPeer.connection();
    PersistentFSRecordsStorage records = connection.getRecords();
    //TODO RC: ideally, this method shouldn't be protected by external myInputLock, but .updateRecord() should
    //         involve VFS internal locking to protect it from concurrent writes
    records.updateRecord(fileId, record -> {
      int flags = record.getFlags();
      int newFlags = flags & ~(Flags.MUST_RELOAD_LENGTH | Flags.MUST_RELOAD_CONTENT);
      if (newFlags != flags) {
        record.setFlags(newFlags);
      }
      record.setContentRecordId(newContentRecordId);
      record.setLength(newContentLength);
      return true;
    });
    connection.markDirty();
  }
private void updateContentId(int fileId,
                               int newContentRecordId,
                               int newContentLength)