@RequiresWriteLock
  public static void reformat(@NotNull Project project, @NotNull Document document) {
    List<BaseCommitMessageInspection> inspections = getEnabledInspections(project).toList();

    inspections.forEach(inspection -> inspection.reformat(project, document));
  }
@RequiresWriteLock
  public static void reformat(@NotNull Project project, @NotNull Document document)