docs: public static List<File> getFiles(String name, FileFilter filter, boolean includeSubtree) {
  
          List<File> ret = new ArrayList<File>();
  
          File file = new File(name);
          if (!file.isDirectory()) {
              file = new File(file.getParent());
              if (!file.isDirectory()) {
                  return ret;
              }
          }
          File[] dirContent = file.listFiles();
          for (int i = 0; i < dirContent.length; i++) {
              File f = dirContent[i];
              if (filter.accept(f)) {
                  ret.add(f);
              }
              if (includeSubtree && f.isDirectory()) {
                  ret.addAll(getFiles(f.getAbsolutePath(), filter, true));
              }
          }
  
          return ret;
      }