public static String parseAdjacentString(List<String> stringList,
            String specificString, boolean front) {

        if (stringList == null || stringList.isEmpty()) {
            return "";
        }

        for (int i = 0; i < stringList.size(); i++) {
            if (stringList.get(i).equalsIgnoreCase(specificString)) {
                if (front && i > 0) {
                    return stringList.get(i - 1);
                } else if (i < stringList.size() - 1) {
                    return stringList.get(i + 1);
                }
            }
        }
        return "";

    }
get the string before or after the specific string in a list
@param stringList the string list
@param specificString the specific string
@param front is front of the specific string
@return the string before or after the specific string
inlong-sort/sort-common/src/main/java/org/apache/inlong/sort/protocol/ddl/Utils/ColumnUtils.java