code: public static File getFile(String resourceOrFile)
              throws FileNotFoundException {
  
          try {
              File file = new File(resourceOrFile);
              if (file.exists()) {
                  return file;
              }
          } catch (Exception e) {// nope
          }
  
          return getFile(resourceOrFile, Thread.class, false);
      }
docs: Use getInputStream instead, because Files are trouble, when in (maven)
  JARs