code: @Override
      public MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, PathsDocument.Parameters params) {
          Map<String, Path> paths = params.paths;
          if (MapUtils.isNotEmpty(paths)) {
              applyPathsDocumentExtension(new Context(Position.DOCUMENT_BEFORE, markupDocBuilder));
              buildPathsTitle(markupDocBuilder);
              applyPathsDocumentExtension(new Context(Position.DOCUMENT_BEGIN, markupDocBuilder));
              buildsPathsSection(markupDocBuilder, paths);
              applyPathsDocumentExtension(new Context(Position.DOCUMENT_END, markupDocBuilder));
              applyPathsDocumentExtension(new Context(Position.DOCUMENT_AFTER, markupDocBuilder));
          }
          return markupDocBuilder;
      }
docs: Builds the paths MarkupDocument.
  
  @return the paths MarkupDocument