void (@NotNull ASTNode child) { if (child.getPsi() instanceof PsiResourceListElement && getResourceVariablesCount() == 1) { getTreeParent().deleteChildInternal(this); return; } super.deleteChildInternal(child); }