code: public List<WarningsGroup> getByComponent(Class<? extends ICalComponent> componentClass) {
  		List<WarningsGroup> warnings = new ArrayList<WarningsGroup>();
  		for (WarningsGroup group : this.warnings) {
  			ICalComponent component = group.getComponent();
  			if (component == null) {
  				continue;
  			}
  
  			if (componentClass == component.getClass()) {
  				warnings.add(group);
  			}
  		}
  		return warnings;
  	}
docs: Gets all validation warnings of a given component.
  @param componentClass the component (e.g. {@code VEvent.class})
  @return the validation warnings