in tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java [356:366]
private static List<Path> findNoticeFiles(Path root) throws IOException {
return Files.walk(root)
.filter(
file -> {
int nameCount = file.getNameCount();
return file.getName(nameCount - 3).toString().equals("resources")
&& file.getName(nameCount - 2).toString().equals("META-INF")
&& file.getName(nameCount - 1).toString().equals("NOTICE");
})
.collect(Collectors.toList());
}