Why this #visitTree implementation for `AbstractTogglePanelItem` has substantially different implementation than `AbstractTab` and `AbstractAccordionItem`?

I assume all of those should have same implementation.