docs: public Build withPhases(BuildPhase... phases) {
          if (this.phases == null) {
              setPhases(new java.util.ArrayList<BuildPhase>(phases.length));
          }
          for (BuildPhase ele : phases) {
              this.phases.add(ele);
          }
          return this;
      }