private static void insertLineFeedInString(Editor editor,
                                             DataContext dataContext,
                                             EditorActionHandler originalHandler,
                                             boolean isInsertIndent) {
    if (isInsertIndent) {
      originalHandler.execute(editor, editor.getCaretModel().getCurrentCaret(), dataContext);
    }
    else {
      EditorModificationUtilEx.insertStringAtCaret(editor, "\n");
    }
  }
private static void insertLineFeedInString(Editor editor,
                                             DataContext dataContext,
                                             EditorActionHandler originalHandler,
                                             boolean isInsertIndent)