public static @Nullable PsiSwitchLabelStatementBase getSwitchLabel(@NotNull PsiCaseLabelElement labelElement) {
    PsiElement parent = PsiUtil.skipParenthesizedExprUp(labelElement.getParent());
    if (parent instanceof PsiCaseLabelElementList) {
      PsiElement grand = parent.getParent();
      if (grand instanceof PsiSwitchLabelStatementBase) {
        return (PsiSwitchLabelStatementBase)grand;
      }
    }
    return null;
  }
public static @Nullable PsiSwitchLabelStatementBase getSwitchLabel(@NotNull PsiCaseLabelElement labelElement)