void (@NotNull IdeFrameImpl tabFrame, boolean closeOthers) { Foundation.executeOnMainThread(true, false, () -> { ID window = MacUtil.getWindowFromJavaWindow(tabFrame); Foundation.invoke(window, closeOthers ? "performCloseOtherTabs:" : "performClose:", ID.NIL); }); }