docs: public static SanitizedContent fromResource(
        Class<?> contextClass, String resourceName, Charset charset, ContentKind kind)
        throws IOException {
      pretendValidateResource(resourceName, kind);
      return SanitizedContent.create(
          Resources.toString(Resources.getResource(contextClass, resourceName), charset),
          kind,
          // Text resources are usually localized, so one might think that the locale direction should
          // be assumed for them. We do not do that because:
          // - We do not know the locale direction here.
          // - Some messages do not get translated.
          // - This method currently can't be used for text resources (see pretendValidateResource()).
          kind.getDefaultDir());
    }