BodyLimitSettings (@NotNull Project project) { VcsConfiguration configuration = VcsConfiguration.getInstance(project); CommitMessageInspectionProfile profile = getInstance(project); return new BodyLimitSettings( profile.getBodyRightMargin(), configuration.USE_COMMIT_MESSAGE_MARGIN && profile.isToolEnabled(BodyLimitInspection.class), configuration.WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN ); }