code: public void toFolder(Path outputDirectory) {
          Validate.notNull(outputDirectory, "outputDirectory must not be null");
  
          context.setOutputPath(outputDirectory);
  
          applyOverviewDocument()
                  .writeToFile(outputDirectory.resolve(context.config.getOverviewDocument()), StandardCharsets.UTF_8);
          applyPathsDocument()
                  .writeToFile(outputDirectory.resolve(context.config.getPathsDocument()), StandardCharsets.UTF_8);
          applyDefinitionsDocument()
                  .writeToFile(outputDirectory.resolve(context.config.getDefinitionsDocument()), StandardCharsets.UTF_8);
          applySecurityDocument()
                  .writeToFile(outputDirectory.resolve(context.config.getSecurityDocument()), StandardCharsets.UTF_8);
      }
docs: Converts the Swagger specification into the given {@code outputDirectory}.
  
  @param outputDirectory the output directory path