@Override
            public void deleteElement() throws IncorrectOperationException {
              PsiElement element = getElement();
              if (element != null) {
                PsiElement parent = element.getParent();
                if (parent != null && parent.isValid()) {
                  @Nullable PsiElement next = PsiTreeUtil.skipWhitespacesAndCommentsForward(element);
                  if (next != null && PsiUtilCore.getElementType(next) == GroovyElementTypes.T_COMMA) {
                    next.delete();
                  }
                  else {
                    @Nullable PsiElement prev = PsiTreeUtil.skipWhitespacesAndCommentsBackward(element);
                    if (prev != null && PsiUtilCore.getElementType(prev) == GroovyElementTypes.T_COMMA) {
                      prev.delete();
                    }
                  }
                }
              }
              super.deleteElement();
            }
@Override
            public void deleteElement()