How to get parent widget?

So will this widget continue to check each time? Shouldn’t this check the outer objects one by one?