public static boolean hasOnlyDefaultCase(@Nullable PsiSwitchLabelStatementBase label) {
    if (label == null) return false;
    if (label.isDefaultCase()) return true;
    PsiCaseLabelElementList labelElementList = label.getCaseLabelElementList();
    return labelElementList != null &&
           labelElementList.getElementCount() == 1 &&
           labelElementList.getElements()[0] instanceof PsiDefaultCaseLabelElement;
  }
public static boolean hasOnlyDefaultCase(@Nullable PsiSwitchLabelStatementBase label)