void (@NotNull ASTNode child) { GrStatement elseBranch = getElseBranch(); if (elseBranch != null && child == elseBranch.getNode()) { PsiElement elseKeywordElement = findChildByType(GroovyTokenTypes.kELSE); if (elseKeywordElement != null) { super.deleteChildInternal(elseKeywordElement.getNode()); } } super.deleteChildInternal(child); }