boolean (@NotNull IdeFrameImpl frame, @NotNull CoroutineScope coroutineScope) { boolean allowed = JdkEx.setTabbingMode(frame, getWindowId(), null); if (allowed) { Foundation.invoke("NSWindow", "setAllowsAutomaticWindowTabbing:", true); IdeGlassPaneImplKt.executeOnCancelInEdt(coroutineScope, () -> { updateTabBars(false); return Unit.INSTANCE; }); WindowTabsComponent.registerFrameDockContainer(frame, coroutineScope); } return allowed; }