@Override
  public boolean doEnter(Editor editor, PsiElement psiElement, boolean isModified) {
    final PyStatementList statementList = getStatementList(psiElement, editor);
    if (statementList != null && statementList.getStatements().length == 0) {
      SmartEnterUtil.plainEnter(editor);
      //editor.getCaretModel().moveToOffset(statementList.getTextRange().getEndOffset());
      return true;
    }
    return false;
  }
@Override
  public boolean doEnter(Editor editor, PsiElement psiElement, boolean isModified)