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