code: private void addRendition(Set<RenditionMetadata> candidates, Rendition rendition, MediaArgs mediaArgs) {
      // ignore AEM-generated thumbnail renditions unless allowed via mediaargs
      if (!mediaArgs.isIncludeAssetThumbnails() && AssetRendition.isThumbnailRendition(rendition)) {
        return;
      }
      // ignore AEM-generated web renditions unless allowed via mediaargs
      boolean isIncludeAssetWebRenditions = mediaArgs.isIncludeAssetWebRenditions() != null
          ? mediaArgs.isIncludeAssetWebRenditions()
          : true;
      if (!isIncludeAssetWebRenditions && AssetRendition.isWebRendition(rendition)) {
        return;
      }
      RenditionMetadata renditionMetadata = createRenditionMetadata(rendition);
      candidates.add(renditionMetadata);
    }
docs: adds rendition to the list of candidates, if it should be available for resolving
  @param candidates
  @param rendition