@Override public void run() { LazyList<T> lazyList = new LazyList<>(box, findIds(), false); int size = lazyList.size(); for (int i = 0; i < size; i++) { T entity = lazyList.get(i); if (entity == null) { throw new IllegalStateException("Internal error: data object was null"); } if (filter != null) { if (!filter.keep(entity)) { continue; } } if (eagerRelations != null) { resolveEagerRelationForNonNullEagerRelations(entity, i); } try { consumer.accept(entity); } catch (BreakForEach breakForEach) { break; } } } });