docs: private static List<MediaType> getSortedProviderProduceTypes(MessageBodyWriter<?> mbw, Map<MessageBodyWriter<?>, List<MediaType>> cache) {
          List<MediaType> mediaTypes = cache.get(mbw);
          if (mediaTypes == null) {
              mediaTypes = JAXRSUtils.getProviderProduceTypes(mbw);
              // sort here before putting in the cache to avoid ConcurrentModificationException
              mediaTypes = JAXRSUtils.sortMediaTypes(mediaTypes, JAXRSUtils.MEDIA_TYPE_QS_PARAM);
              cache.put(mbw, mediaTypes);
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "getSortedProviderProduceTypes - cache miss - caching " + mbw + " = " + mediaTypes);
              }
          }
          return mediaTypes;
      }