public static boolean isValidTld(String tld) {
        tld = unicodeToASCII(tld);
        String key = unicodeToASCII(tld).toLowerCase(Locale.ENGLISH);
        if (key.startsWith(".")) {
            key = key.substring(1);
        }
        return Arrays.binarySearch(INFRASTRUCTURE_TLDS, key) >= 0
                || Arrays.binarySearch(GENERIC_TLDS, key) >= 0
                || Arrays.binarySearch(COUNTRY_CODE_TLDS, key) >= 0;
    }
Returns true if the specified <code>String</code> matches any
IANA-defined top-level domain. Leading dots are ignored if present.
The search is case-insensitive.
@param tld the parameter to check for TLD status, not null
@return true if the parameter is a TLD
core/src/main/java/com/alibaba/fastjson2/schema/DomainValidator.java