private void setFlag(int id, @Attributes int mask, boolean value) {
    int oldFlags = vfsPeer.getFlags(id);
    int flags = value ? oldFlags | mask
                      : oldFlags & ~mask;

    if (oldFlags != flags) {
      //noinspection MagicConstant
      vfsPeer.setFlags(id, flags);
    }
  }
private void setFlag(int id, @Attributes int mask, boolean value)