ate static boolean hasTrueAndFalse(@NotNull List<? extends PsiCaseLabelElement> elements) {
    Set<Object> constants = elements.stream()
      .filter(e -> e instanceof PsiExpression expression && PsiTypes.booleanType().equals(expression.getType()))
      .map(e -> evaluateConstant(e))
      .collect(Collectors.toSet());
    return constants.contains(Boolean.TRUE) && constants.contains(Boolean.FALSE);
  }

  
ate static boolean hasTrueAndFalse(@NotNull List<? extends PsiCaseLabelElement> elements) {
 