docs: public static List<File> getFilesByExtension(File dir, String[] extensions)
      {
          if (!dir.isDirectory() || extensions == null)
              return Collections.emptyList();
          List<File> files = new ArrayList<File>();
          addFilesByExtension(files, dir, extensions);
          return files;
      }