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