public static void configure(@NotNull DialogWrapper dialog) {
    if (isAvailable()) {
      if ((SystemInfoRt.isMac && StartupUiUtil.INSTANCE.isDarkTheme()) || SystemInfoRt.isWindows) {
        setRoundedCorners(dialog.getWindow(), JBUI.CurrentTheme.Popup.borderColor(true));
        dialog.getRootPane().setBorder(PopupBorder.Factory.createEmpty());
      }
      else {
        setRoundedCorners(dialog.getWindow());
      }
    }
  }
public static void configure(@NotNull DialogWrapper dialog)