void (@NotNull Project project, @NotNull Document document) { List<BaseCommitMessageInspection> inspections = getEnabledInspections(project).toList(); inspections.forEach(inspection -> inspection.reformat(project, document)); }