docs: public RepositoryTrigger withBranches(String... branches) {
          if (this.branches == null) {
              setBranches(new java.util.ArrayList<String>(branches.length));
          }
          for (String ele : branches) {
              this.branches.add(ele);
          }
          return this;
      }