code: private static void getFilesByNameRecursive(Collection<File> filesList, File path, String name)
      {
          Optional.ofNullable(path.listFiles()).ifPresent(files -> Arrays.asList(files).forEach(content ->
          {
              if (content.isFile() && content.getName().equals(name))
              {
                  filesList.add(content);
              }
              else if (content.isDirectory())
              {
                  getFilesByNameRecursive(filesList, content, name);
              }
          }));
      }
docs: Get all files existing in the path with the specified name.
  
  @param filesList The files list.
  @param path The path to check.
  @param name The file name.