docs: private static File matchFile(File dirPath, String regex) {
          if (dirPath != null && dirPath.isDirectory()) {
              List<File> fileList = FileLocator.getMatchingFiles(dirPath, regex);
              for (File currentFile : fileList) {
                  if (currentFile.exists())
                      return currentFile;
              }
          }
          return null;
      }