diff --git a/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeManagerImpl.java b/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeManagerImpl.java index ff08ec066be3..cfba9d4aea43 100644 --- a/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeManagerImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeManagerImpl.java @@ -649,7 +649,7 @@ public class FileTypeManagerImpl extends FileTypeManagerEx implements Persistent private volatile FileAttribute autoDetectedAttribute; // read auto-detection flags from the persistent FS file attributes. If file attributes are absent, return 0 for flags // returns three bits value for AUTO_DETECTED_AS_TEXT_MASK, AUTO_DETECTED_AS_BINARY_MASK and AUTO_DETECT_WAS_RUN_MASK bits - private byte readFlagsFromCache(@NotNull VirtualFile file) { + protected byte readFlagsFromCache(@NotNull VirtualFile file) { boolean wasAutoDetectRun = false; byte status = 0; try (DataInputStream stream = autoDetectedAttribute.readAttribute(file)) { @@ -666,7 +666,7 @@ public class FileTypeManagerImpl extends FileTypeManagerEx implements Persistent // store auto-detection flags to the persistent FS file attributes // writes AUTO_DETECTED_AS_TEXT_MASK, AUTO_DETECTED_AS_BINARY_MASK bits only - private void writeFlagsToCache(@NotNull VirtualFile file, int flags) { + protected void writeFlagsToCache(@NotNull VirtualFile file, int flags) { try (DataOutputStream stream = autoDetectedAttribute.writeAttribute(file)) { stream.writeByte(flags & (AUTO_DETECTED_AS_TEXT_MASK | AUTO_DETECTED_AS_BINARY_MASK)); }