public static void minimizeDiffIfOpenedInWindow(@NotNull Component diffComponent) {
    if (!SystemInfo.isMac) return;
    EditorWindowHolder holder = UIUtil.getParentOfType(EditorWindowHolder.class, diffComponent);
    if (holder == null) return;

    List<EditorComposite> composites = holder.getEditorWindow().getAllComposites();
    if (composites.size() == 1) {
      if (DIFF_OPENED_IN_NEW_WINDOW.get(composites.get(0).getFile(), false)) {
        Window window = UIUtil.getWindow(diffComponent);
        if (window != null && !canBeHiddenBehind(window)) {
          if (window instanceof Frame) {
            ((Frame)window).setState(Frame.ICONIFIED);
          }
        }
      }
    }
  }
public static void minimizeDiffIfOpenedInWindow(@NotNull Component diffComponent)