private String findBestMatchField(Set<String> matchedSet, String checkItem) {
        String matchedField = null;
        int minDistance = Integer.MAX_VALUE;
        for (String matchItem : matchedSet) {
            int dis = TStringUtils.getLevenshteinDistance(checkItem, matchItem);
            if (dis < minDistance) {
                matchedField = matchItem;
                minDistance = dis;
            }
        }
        return matchedField;
    }
Retrieve similar configurations within a set of specific configurations according to the given configuration.

@param section      the section within file to be searched.
@param configFields the set of configurations to be searched.
@param checkItem    the given configuration to be compared.
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/common/fileconfig/AbstractFileConfig.java