@Override
  protected ProblemDescriptor @Nullable [] checkFile(@NotNull PsiFile file,
                                                     @NotNull Document document,
                                                     @NotNull InspectionManager manager,
                                                     boolean isOnTheFly) {
    return range(1, document.getLineCount())
      .mapToObj(line -> {
        String problemText = VcsBundle.message("commit.message.inspection.message.body.lines.should.not.exceed.characters", RIGHT_MARGIN);
        return checkRightMargin(file, document, manager, isOnTheFly, line, RIGHT_MARGIN,
                                problemText, new WrapLineQuickFix(),
                                new ReformatCommitMessageQuickFix());
      })
      .filter(nonNull())
      .toArray(ProblemDescriptor[]::new);
  }
@Override
  protected ProblemDescriptor @Nullable [] checkFile(@NotNull PsiFile file,
                                                     @NotNull Document document,
                                                     @NotNull InspectionManager manager,
                                                     boolean isOnTheFly)