docs: private static void checkDir(Path self) throws FileNotFoundException, IllegalArgumentException {
          if (!Files.exists(self))
              throw new FileNotFoundException(self.toAbsolutePath().toString());
          if (!Files.isDirectory(self))
              throw new IllegalArgumentException("The provided Path object is not a directory: " + self.toAbsolutePath());
      }