public static <T> List<T> findMatchesLatin1(T[] values, String pattern) {
        List<T> newValues = null;
        for (T value : values) {
            if (matchLatin1(value.toString(), pattern)) {
                if (newValues == null) {
                    newValues = new LinkedList<>();
                }
                newValues.add(value);
            }
        }
        return newValues == null
                ? Collections.emptyList()
                : newValues;
    }
@implNote The method assumes the string does NOT contain any extended control character if it
          is encoded in LATIN1. Though Latin-1 is a subset of Unicode, Latin-1 and UTF-8 have
          different bit patterns.
@see <a href="https://cs.stanford.edu/people/miles/iso8859.html">iso8859</a>
turms-server-common/src/main/java/im/turms/server/common/infra/lang/StringUtil.java