code: public static <E extends Style.HasCssName> void addEnumStyleName(final UIObject uiObject,
                                                                       final E style) {
  
          if (style != null && style.getCssName() != null && !style.getCssName().isEmpty()) {
              uiObject.addStyleName(style.getCssName());
          }
      }
docs: Adds enum value style name to UIObject unless style is {@code null}.
  
  @param uiObject Object to add style to
  @param style    Style name