@Contract(pure = true)
  private static boolean isBeingCompleted(@NotNull PsiSwitchLabelStatementBase label) {
    if (!(label.getLastChild() instanceof PsiErrorElement)) return false;

    final PsiCaseLabelElementList list = label.getCaseLabelElementList();
    return list != null && list.getElements().length == 1;
  }
@Contract(pure = true)
  private static boolean isBeingCompleted(@NotNull PsiSwitchLabelStatementBase label)