void (@NotNull HighlightInfo.Builder info, PsiElement defaultElement, @NotNull PsiElement duplicateElement) { if (defaultElement instanceof PsiCaseLabelElement caseElement) { IntentionAction action = getFixFactory().createDeleteSwitchLabelFix(caseElement); info.registerFix(action, null, null, null, null); return; } IntentionAction action = getFixFactory().createDeleteDefaultFix(myFile, duplicateElement); info.registerFix(action, null, null, null, null); }