/**
  * Return the SWT Control which is wrapped to the object <code>element</code>.
  *
  * @param element
  * @return
  */
 public static Control getControl(Object element) {
   if (element instanceof Control) {
     return (Control) element;
   } else {
     if (element instanceof CSSStylableElement) {
       CSSStylableElement elt = (CSSStylableElement) element;
       Object widget = elt.getNativeWidget();
       if (widget instanceof Control) return (Control) widget;
     }
   }
   return null;
 }
 /**
  * Return the SWT Widget which is wrapped to the object <code>element</code>.
  *
  * @param element
  * @return
  */
 public static Widget getWidget(Object element) {
   if (element instanceof Widget) {
     return (Widget) element;
   } else {
     if (element instanceof CSSStylableElement) {
       CSSStylableElement elt = (CSSStylableElement) element;
       Object widget = elt.getNativeWidget();
       if (widget instanceof Widget) return (Widget) widget;
     }
   }
   return null;
 }