code: public void setInstances(java.util.Collection<Instance> instances) {
          if (instances == null) {
              this.instances = null;
              return;
          }
  
          this.instances = new java.util.ArrayList<Instance>(instances);
      }
docs: <p>
  If <code>Label</code> represents an object, <code>Instances</code> contains the bounding boxes for each instance
  of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture,
  apparel or pets.
  </p>
  
  @param instances
  If <code>Label</code> represents an object, <code>Instances</code> contains the bounding boxes for each
  instance of the detected object. Bounding boxes are returned for common object labels such as people,
  cars, furniture, apparel or pets.