@Override
  public void doApply(@NotNull Editor editor, @NotNull PySmartEnterProcessor processor, @NotNull PyExceptPart exceptPart) throws IncorrectOperationException {
    final PsiElement colon = PyPsiUtils.getFirstChildOfType(exceptPart, PyTokenTypes.COLON);
    if (colon == null) {
      final PsiElement exceptToken = PyPsiUtils.getFirstChildOfType(exceptPart, PyTokenTypes.EXCEPT_KEYWORD);
      int offset = sure(exceptToken).getTextRange().getEndOffset();
      final PyExpression exceptClass = exceptPart.getExceptClass();
      if (exceptClass != null) {
        offset = exceptClass.getTextRange().getEndOffset();
      }
      final PyExpression target = exceptPart.getTarget();
      if (target != null) {
        offset = target.getTextRange().getEndOffset();
      }
      editor.getDocument().insertString(offset, ":");
    }
  }
@Override
  public void doApply(@NotNull Editor editor, @NotNull PySmartEnterProcessor processor, @NotNull PyExceptPart exceptPart)