@Override
  public void deleteAttributes(@NotNull PersistentFSConnection connection,
                               int fileId) throws IOException {
    PersistentFSConnection.ensureIdIsValid(fileId);

    PersistentFSRecordsStorage records = connection.getRecords();
    lock.writeLock().lock();
    try {
      int attributeRecordId = records.getAttributeRecordId(fileId);
      deleteAttributes(attributeRecordId, fileId);

      records.setAttributeRecordId(fileId, NON_EXISTENT_ATTRIBUTE_RECORD_ID);
    }
    finally {
      lock.writeLock().unlock();
    }
  }
@Override
  public void deleteAttributes(@NotNull PersistentFSConnection connection,
                               int fileId)