private boolean isCurrentPassesFilter() {
    if (currentPassedFilter != null) {
      return currentPassedFilter;
    }
    boolean passed = condition.test(current);
    currentPassedFilter = passed;
    return passed;
  }
private boolean isCurrentPassesFilter()