void (boolean create) { IdeFrame[] helpers = WindowManager.getInstance().getAllProjectFrames(); if (create) { TabsInfo info = getTabsInfo(helpers, myFrame); if (info == null) { return; } int index = ArrayUtil.indexOfIdentity(info.frames, myFrame); for (IdeFrameImpl frame : info.frames) { if (frame == myFrame || isTabsNotVisible(frame)) { createTabBarsForFrame(frame, info.helpersMap.get(frame), info.frames); } else { insertTabForFrame(frame, myFrame, index); } } } else { for (IdeFrame _helper : helpers) { ProjectFrameHelper helper = (ProjectFrameHelper)_helper; if (helper.rootPane.isCoroutineScopeCancelled$intellij_platform_ide_impl()) { continue; } IdeFrameImpl frame = helper.getFrame(); if (frame == myFrame) { continue; } removeFromFrame(frame, myFrame); } } }