public static boolean isTabbedWindow(@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;
  }
public static boolean isTabbedWindow(@NotNull JFrame frame)