boolean (@NotNull Processor<? super E> processor) { //noinspection ForLoopReplaceableByForEach for (int i = 0; i < intervals.size(); i++) { Supplier<? extends E> interval = intervals.get(i); E key = interval.get(); if (key != null && !processor.process(key)) { return false; } } return true; }