void (@NotNull ASTNode child) { final PsiElement psi = child.getPsi(); if (psi instanceof GrExpression || psi instanceof GrNamedArgument) { PsiElement prev = PsiUtil.getPrevNonSpace(psi); PsiElement next = PsiUtil.getNextNonSpace(psi); if (prev != null && prev.getNode() != null && prev.getNode().getElementType() == GroovyTokenTypes.mCOMMA) { super.deleteChildInternal(prev.getNode()); } else if (next instanceof LeafPsiElement && next.getNode() != null && next.getNode().getElementType() == GroovyTokenTypes.mCOMMA) { super.deleteChildInternal(next.getNode()); } } super.deleteChildInternal(child); }