void (@NotNull ActionContext context, @NotNull PsiCaseLabelElement labelElement, @NotNull ModPsiUpdater updater) { PsiSwitchLabelStatementBase label = PsiImplUtil.getSwitchLabel(labelElement); if (label == null) return; PsiSwitchBlock block = label.getEnclosingSwitchBlock(); if (block == null) return; deleteLabelElement(context.project(), labelElement); if (myAddDefaultIfNecessary && SwitchBlockHighlightingModel.shouldAddDefault(block)) { CreateDefaultBranchFix.addDefault(block, updater); } }