public static ViewMode fromWindowInfo(@NotNull WindowInfo info) {
      return switch (info.getType()) {
        case DOCKED -> info.isAutoHide() ? DockUnpinned : DockPinned;
        case FLOATING -> Float;
        case SLIDING -> Undock;
        case WINDOWED -> Window;
      };
    }
public static ViewMode fromWindowInfo(@NotNull WindowInfo info)