FileAttributes (@NotNull CaseSensitivity sensitivity) { byte newFlags = (byte)(flags & ~(0b11 << CASE_SENSITIVITY_SHIFT)); newFlags = packSensitivityIntoFlags(sensitivity, newFlags); return new FileAttributes(newFlags, length, lastModified); }