void (@NotNull PsiCaseLabelElementList list) { PsiElement parent = list.getParent(); if (parent instanceof PsiSwitchLabelStatementBase) { PsiSwitchBlock switchBlock = ((PsiSwitchLabelStatementBase)parent).getEnclosingSwitchBlock(); handleCaseElementList(switchBlock); } }