void (Project project, @NotNull Editor editor, int lineNumber, int indent) { int caretOffset = editor.getCaretModel().getOffset(); int newCaretOffset = indentLine(project, editor, lineNumber, indent, caretOffset); editor.getCaretModel().moveToOffset(newCaretOffset); }