docs: public void setPhases(java.util.Collection<BuildPhase> phases) {
          if (phases == null) {
              this.phases = null;
              return;
          }
  
          this.phases = new java.util.ArrayList<BuildPhase>(phases);
      }