final String text = document.getText();
if (!"".equals(text.substring(offset).trim())) {
final String before = text.substring(0, offset);
final String after = text.substring(offset);
final FileASTNode node = console.getFile().getNode();
final Project project = editor.getProject();
final int indent = myIndentHelper.getIndent(project, ClojureFileType.CLOJURE_FILE_TYPE, node);
final String spaces = IndentHelperImpl.fillIndent(project, ClojureFileType.CLOJURE_FILE_TYPE, indent);
final String newText = before + "\n" + spaces + after;