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