void (@NotNull ASTNode child) { super.deleteChildInternal(child); final PyExpression[] children = getElements(); final PyElementGenerator generator = PyElementGenerator.getInstance(getProject()); if (children.length == 1 && PyPsiUtils.getNextComma(children[0]) == null ) { addAfter(generator.createComma().getPsi(), children[0]); } else if (children.length == 0 && !(getParent() instanceof PyParenthesizedExpression)) { replace(generator.createExpressionFromText(LanguageLevel.forElement(this), "()")); } }