void (long fileLength, @NotNull VirtualFile file, boolean readOnly, byte @NotNull [] bytes, int byteLength) { myInputLock.writeLock().lock(); try { if (byteLength == fileLength) { writeContent(file, new ByteArraySequence(bytes, 0, byteLength), /*contentOfFixedSize: */ readOnly); setFlag(file, Flags.MUST_RELOAD_CONTENT, false); setFlag(file, Flags.MUST_RELOAD_LENGTH, false); } else { doCleanPersistedContent(getFileId(file)); } } finally { myInputLock.writeLock().unlock(); } }