void (@NotNull Project project, @NotNull EditorEx editor) { BodyLimitSettings settings = getBodyLimitSettings(project); editor.getSettings().setRightMargin(settings.getRightMargin()); editor.getSettings().setRightMarginShown(settings.isShowRightMargin()); editor.getSettings().setWrapWhenTypingReachesRightMargin(settings.isWrapOnTyping()); }