docs: public void setEntities(java.util.Collection<AffectedEntity> entities) {
          if (entities == null) {
              this.entities = null;
              return;
          }
  
          this.entities = new java.util.ArrayList<AffectedEntity>(entities);
      }