boolean (@NotNull JFrame frame) { if (JdkEx.isTabbingModeAvailable() && WindowManager.getInstance().getAllProjectFrames().length > 1) { ID id = MacUtil.getWindowFromJavaWindow(frame); int tabs = Foundation.invoke(Foundation.invoke(id, "tabbedWindows"), "count").intValue(); return tabs > 1; } return false; }