private int writeRecordFields(int fileId,
                                int parentId,
                                @NotNull CharSequence name,
                                @NotNull FileAttributes attributes) {
    assert fileId > 0 : fileId;
    assert parentId > 0 : parentId; // 0 means it's root => should use .writeRootFields() instead
    return vfsPeer.updateRecordFields(fileId, parentId, attributes, name.toString(), /* cleanAttributeRef: */ true);
  }
private int writeRecordFields(int fileId,
                                int parentId,
                                @NotNull CharSequence name,
                                @NotNull FileAttributes attributes)