boolean (@NotNull Document document, boolean isSaveExplicit) { VirtualFile file = FileDocumentManager.getInstance().getFile(document); return file == null || !file.isValid() || !FileUtilRt.isTooLarge(file.getLength()); }