class PathMatchUtil {

    public static List<String> searchAbsolutePath(List<String> pathList) {<FILL_FUNCTION_BODY>}

    private static void searchAbsolutePath(String baseDir, String path, List<String> absolutePathList) {
        AntPathMatcher pathMatcher = new AntPathMatcher();
        File dir = new File(baseDir);
        File[] files = dir.listFiles();

        if (files != null) {
            for (File file : files) {
                if (file.isDirectory()) {
                    searchAbsolutePath(file.getAbsolutePath(), path, absolutePathList);
                } else {
                    String absolutePath = file.getAbsolutePath().replace("\\", "/");
                    if (pathMatcher.match(path, absolutePath)) {
                        absolutePathList.add(absolutePath);
                    }
                }
            }
        }
    }
}


        List<String> absolutePathList = new ArrayList<>();

        for (String path : pathList) {
            // 只对绝对路径进行处理
            if(FileUtil.isAbsolutePath(path)) {
                if(!path.contains("*")) {
                    absolutePathList.add(path);
                }
                else {
                    String[] pathSegments = path.split("/");
                    StringBuilder baseDir = new StringBuilder();

                    // 找到最大基础路径
                    for(int i = 0; i < pathSegments.length; i ++) {
                        if(!pathSegments[i].contains("*")) {
                            baseDir.append(pathSegments[i]).append(File.separator);
                        } else {
                            baseDir.deleteCharAt(baseDir.length() - 1);
                            searchAbsolutePath(baseDir.toString(), path, absolutePathList);
                            break;
                        }
                    }
                }
            } else {
                absolutePathList.add(path);
            }
        }
        // 路径去重
        List<String> newAbsolutePathList = absolutePathList.stream()
                .distinct()
                .collect(Collectors.toList());
        return newAbsolutePathList;
    
<no_super_class>