public FileFinder withFileNameRegex(final String name) {
        return withFileFilter(new FileNameRegexMatchPredicate(name, caseSensitive));
    }
Configures the {@link FileFinder} to ignore the case for comparisons of filenames.

@return The current {@link FileFinder} to perform method chaining.
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/utils/file/FileFinder.java