boolean (@NotNull VirtualFile file) { // Attempt to navigate to the virtual file with unknown file type will show a modal dialog // asking to register some file type for this file. This behaviour is undesirable when auto scrolling. FileType type = file.getFileType(); if (type == FileTypes.UNKNOWN || type instanceof INativeFileType) return false; //IDEA-84881 Don't autoscroll to very large files return file.getLength() <= PersistentFSConstants.getMaxIntellisenseFileSize(); }