void (@NotNull Project project, @NotNull PsiElement startElement, @NotNull ModPsiUpdater updater) { final PsiElement element = startElement.getParent(); if (element instanceof PsiSwitchLabelStatementBase label) { DeleteSwitchLabelFix.deleteLabel(label); } else if (element instanceof PsiDefaultCaseLabelElement defaultElement) { DeleteSwitchLabelFix.deleteLabelElement(project, defaultElement); } }