private static @Nullable UUID readId(String value, @NotNull BrowserFamily family, @NotNull List<ConfigurableWebBrowser> existingBrowsers) {
    if (StringUtil.isEmpty(value)) {
      UUID id;
      switch (family) {
        case CHROME -> id = PREDEFINED_CHROME_ID;
        case EXPLORER -> id = PREDEFINED_EXPLORER_ID;
        case FIREFOX -> id = PREDEFINED_FIREFOX_ID;
        case SAFARI -> id = PREDEFINED_SAFARI_ID;
        default -> {
          return null;
        }
      }

      for (ConfigurableWebBrowser browser : existingBrowsers) {
        if (browser.getId() == id) {
          // duplicated entry, skip
          return null;
        }
      }
      return id;
    }
    else {
      try {
        return UUID.fromString(value);
      }
      catch (Exception e) {
        LOG.warn(e);
      }
    }
    return null;
  }
private static @Nullable UUID readId(String value, @NotNull BrowserFamily family, @NotNull List<ConfigurableWebBrowser> existingBrowsers)