private void tryParseWidgetFromElement(IDOMElement element){
  String fqWidgetType=UiBinderXmlModelUtilities.computeQualifiedWidgetTypeName(element);
  if (fqWidgetType == null) {
    return;
  }
  if (IGNORED_CAPITALIZED_SYNTHETIC_ELEMENTS.contains(fqWidgetType)) {
    return;
  }
  javaTypeReferences.add(fqWidgetType);
  final IType type=JavaModelSearch.findType(javaProject,fqWidgetType);
  boolean validType=JavaModelSearch.isValidElement(type);
  List<IRegion> tagRegions=XmlUtilities.getElementTagRegions(element,false);
  for (  IRegion region : tagRegions) {
    if (!validType) {
      problemMarkerManager.setWidgetUndefinedError(region,fqWidgetType);
    }
  }
}

private void tryParseWidgetFromElement ( IDOMElement element ) { String fqWidgetType = UiBinderXmlModelUtilities . computeQualifiedWidgetTypeName ( element ) ; if ( fqWidgetType == null ) { return ; } if ( IGNORED_CAPITALIZED_SYNTHETIC_ELEMENTS . contains ( fqWidgetType ) ) { return ; } javaTypeReferences . add ( fqWidgetType ) ; final IType type = JavaModelSearch . findType ( javaProject , fqWidgetType ) ; boolean validType = JavaModelSearch . isValidElement ( type ) ; List < IRegion > tagRegions = XmlUtilities . getElementTagRegions ( element , false ) ; for ( IRegion region : tagRegions ) { if ( ! validType ) { problemMarkerManager . setWidgetUndefinedError ( region , fqWidgetType ) ; } } }
parses a widget reference from an element . for example , g : button .
