boolean (@NotNull VirtualFile file) { // do not use file.getFileType() to avoid autodetection by content loading for arbitrary files return isProjectOrWorkspaceFile(file, FileTypeRegistry.getInstance().getFileTypeByFileName(file.getNameSequence())); }