docs: public void setCases(List<SwitchCase> cases) {
          if (cases == null) {
              this.cases = null;
          } else {
              if (this.cases != null)
                  this.cases.clear();
              for (SwitchCase sc : cases)
                  addCase(sc);
          }
      }