void () { Foundation.executeOnMainThread(true, false, () -> { ID window = MacUtil.getWindowFromJavaWindow(myFrame); int visibleAndHeight = (int)Foundation.invoke_fpret(window, "getTabBarVisibleAndHeight"); ApplicationManager.getApplication() .invokeLater(() -> updateTabBar(myFrame, visibleAndHeight == -1 ? DEFAULT_WIN_TAB_HEIGHT() : visibleAndHeight)); }); }