Relocate Collapse all/Expand button

Hey I wanted to know if there is any way we could relocate the “collapse all”/“expand” button to the top of the report in trial balance or any tree structured reports.

You need to monkey patch this method.