protected void reformatAndMove(@NotNull Editor editor, @Nullable PsiElement elt, int caretOffset) {
    reformat(elt);
    editor.getCaretModel().moveToOffset(caretOffset - 1);
  }
protected void reformatAndMove(@NotNull Editor editor, @Nullable PsiElement elt, int caretOffset)