boolean (@NotNull VirtualFile file) { Document document = FileDocumentManager.getInstance().getCachedDocument(file); if (document != null) return true; if (!file.isValid() || file.isDirectory() || isBinaryWithoutDecompiler(file)) return false; return !file.getFileType().isBinary() || !FileUtilRt.isTooLarge(file.getLength()); }