boolean (boolean purgeDead) { boolean hasAliveInterval = false; for (int i = intervals.size() - 1; i >= 0; i--) { Supplier<? extends E> interval = intervals.get(i); if (interval.get() != null) { hasAliveInterval = true; if (purgeDead) { continue; } else { break; } } if (purgeDead) { myTree.assertUnderWriteLock(); removeIntervalInternal(i); } } return hasAliveInterval; }