public static IImmutableList <ISpan> AsImmutableSpans(this ICharSequence text, int cursorPosition) => text.AsSpans(cursorPosition).ToImmutableList();