docs: public void setStages(java.util.Collection<StageDeclaration> stages) {
          if (stages == null) {
              this.stages = null;
              return;
          }
  
          this.stages = new java.util.ArrayList<StageDeclaration>(stages);
      }