docs: private void checkForExistence(String fileName) throws IOException {
          File file = new File(fileName);
          if (!file.exists()) {
              throw new FileNotFoundException("File with name " + fileName + " does not exist.");
          }
          if (!file.isFile()) {
              throw new IOException("Provided string does not correspond to an actual file.");
          }
  
      }