docs: public static void registerVariant(String name, Style style, String variantName) {
      Map<String,String> styleVariants = _variants.get(style);
      if (styleVariants == null) {
        _variants.put(style, styleVariants = new HashMap<String,String>());
      }
      styleVariants.put(name, variantName);
    }