How can it be?(Child Text widget)

How can it be?
When you ask whether the child element of the vertical box is a text widget, the code displays the truth.
But when you try to insert text into this text widget, the code displays that the component does not fit the class.