@Override
  public void delete() throws IncorrectOperationException {
    final PsiElement next = PsiTreeUtil.skipWhitespacesAndCommentsForward(this);
    if (PsiUtil.isJavaToken(next, JavaTokenType.SEMICOLON)) {
      getParent().deleteChildRange(this, next);
      return;
    }

    final PsiElement prev = PsiTreeUtil.skipWhitespacesAndCommentsBackward(this);
    if (PsiUtil.isJavaToken(prev, JavaTokenType.SEMICOLON)) {
      getParent().deleteChildRange(prev, this);
      return;
    }

    super.delete();
  }
@Override
  public void delete()