-
In the Hierarchy tool window,
click the Pin Tab button
on the toolbar.
By default, every time you build a new hierarchy, IntelliJ IDEA overwrites the current tab in the Hierarchy tool window. You can retain the contents of the desired tabs and have next hierarchies built in new tabs.
on the toolbar.