docs: void checkWritableDir(String tempPath) {
      try {
        File tempFile = File.createTempFile("check", "tmp", new File(tempPath));
        deleteQuietly(tempFile);
      } catch (IOException e) {
        throw new IllegalStateException(format("Temp directory is not writable: %s", tempPath), e);
      }
    }