void (@NotNull Project project, @NotNull Document document, @Nullable ProblemDescriptor descriptor) { Editor editor = CommitMessage.getEditor(document); if (editor != null) { TextRange range = descriptor != null && descriptor.getLineNumber() >= 0 ? getLineTextRange(document, descriptor.getLineNumber()) : getBodyRange(document); if (!range.isEmpty()) { wrapLines(project, editor, document, RIGHT_MARGIN, range); } } }