code: public static MessageSource of(final Class... types) {
      checkNotNull(types);
      checkArgument(types.length > 0);
      return new ResourceBundleMessageSource().add(false, types);
    }
docs: Returns a {@link MessageSource} for the given types.