void (@NotNull Window window, @Nullable Object params) { if (SystemInfoRt.isMac) { if (params == null) { params = Float.valueOf(IdeaPopupMenuUI.CORNER_RADIUS.getFloat()); } else if (params instanceof PopupCornerType cornerType) { if (cornerType == PopupCornerType.None) { return; } JBValue radius = cornerType == PopupCornerType.RoundedTooltip ? JBUI.CurrentTheme.Tooltip.CORNER_RADIUS : IdeaPopupMenuUI.CORNER_RADIUS; params = Float.valueOf(radius.getFloat()); } else if (params instanceof Color) { params = new Object[]{Float.valueOf(IdeaPopupMenuUI.CORNER_RADIUS.getFloat()), Integer.valueOf(1), params}; } else if (params instanceof Object[] values) { if (values.length != 2 || !(values[0] instanceof PopupCornerType cornerType) || !(values[1] instanceof Color)) { return; } JBValue radius = cornerType == PopupCornerType.RoundedTooltip ? JBUI.CurrentTheme.Tooltip.CORNER_RADIUS : IdeaPopupMenuUI.CORNER_RADIUS; params = new Object[]{Float.valueOf(radius.getFloat()), Integer.valueOf(1), values[1]}; } else if (!(params instanceof Float)) { return; } } else if (SystemInfo.isWindows) { if (params == null) { params = "full"; } else if (params instanceof PopupCornerType cornerType) { if (cornerType == PopupCornerType.None) { return; } params = cornerType == PopupCornerType.RoundedTooltip ? "small" : "full"; } else if (params instanceof Color) { params = new Object[]{"full", params}; } else if (params instanceof Object[] values) { if (values.length != 2 || !(values[0] instanceof PopupCornerType cornerType) || !(values[1] instanceof Color)) { return; } params = new Object[]{cornerType == PopupCornerType.RoundedTooltip ? "small" : "full", values[1]}; } else if (!(params instanceof String)) { return; } } JBR.getRoundedCornersManager().setRoundedCorners(window, params); }