default @NotNull Iterable<Component> iterable(final @NotNull ComponentIteratorType type, final @NotNull Set<ComponentIteratorFlag> flags) {
    requireNonNull(type, "type");
    requireNonNull(flags, "flags");
    return new ForwardingIterator<>(() -> this.iterator(type, flags), () -> this.spliterator(type, flags));
  }
Returns an iterable view of this component.

@param type the type
@param flags the flags
@return the iterable
@since 4.9.0
api/src/main/java/net/kyori/adventure/text/Component.java