class ActiveWarnings implements Iterable<Warning> {

    @Override
    public Iterator<Warning> iterator() {
        return stream(warnings.spliterator(), false)
                .filter(Warning::active)
                .iterator();
    }

    public  ActiveWarnings(Iterable<Warning> warnings);

}