Files.walk(Paths.get("ваш каталог тут"))
.filter(Files::isRegularFile)
.map(Path::toFile)
.filter(file->{
new BufferedReader(new InputStreamReader(new FileInputStream(file)))
.lines()
.anyMatch(line -> line.contains(word))
})
.collect(Collectors.toList())