void (@NotNull IdeFrameImpl frame, @NotNull ProjectFrameHelper helper, IdeFrameImpl @NotNull [] tabFrames) { WindowTabsComponent tabs = new WindowTabsComponent(frame, helper.getProject(), helper.rootPane.createDisposable$intellij_platform_ide_impl()); JPanel parentComponent = getTabsContainer(frame); parentComponent.add(tabs); tabs.createTabsForFrame(tabFrames); boolean oldVisible = parentComponent.isVisible(); parentComponent.setVisible(true); Container parent = parentComponent.getParent(); if (parent == null || oldVisible) { return; } parent.doLayout(); parent.revalidate(); parent.repaint(); }