docs: public void setEvents(java.util.Collection<DeviceEvent> events) {
          if (events == null) {
              this.events = null;
              return;
          }
  
          this.events = new java.util.ArrayList<DeviceEvent>(events);
      }