docs: Stream<SegmentWithState> getSegmentWithStates(Collection<String> sequenceNames)
    {
      synchronized (segments) {
        return sequenceNames
            .stream()
            .map(segments::get)
            .filter(Objects::nonNull)
            .flatMap(segmentsForSequence -> segmentsForSequence.intervalToSegmentStates.values().stream())
            .flatMap(segmentsOfInterval -> segmentsOfInterval.getAllSegments().stream());
      }
    }