boolean (@NotNull FileType type) { if (type instanceof InternalFileType) return false; if (type instanceof DirectoryFileType) return false; if (type instanceof UnknownFileType) return false; if (type instanceof FakeFileType) return false; // FileTypeIdentifiableByVirtualFile has hard-coded isMyFileType() which we can't change, so we shouldn't override this, // or we will risk creating an inconsistency otherwise (see com.intellij.openapi.fileTypes.impl.FileTypesUltimateTest.testFileTypesIdentifiableByFileHaveConsistentIsMyFile) if (type instanceof FileTypeIdentifiableByVirtualFile) return false; return true; }