private static boolean hasNullCase(@NotNull List<SwitchStatementBranch> allBranches) {
    return ContainerUtil.or(allBranches, br -> ContainerUtil.or(br.getCaseElements(), el -> el.element() instanceof PsiExpression expr &&
                                                                                            ExpressionUtils.isNullLiteral(expr)));
  }
private static boolean hasNullCase(@NotNull List<SwitchStatementBranch> allBranches)