code: public function isMatch($widget)
      {
          if (method_exists($widget, 'isLabel')) {
              if ($widget->isLabel($this->label)) {
                  return true;
              }
          }
  
          return ($widget->getName() == $this->label);
      }
docs: Comparison. Compares visible text of widget or related label or name.
  
  @param SimpleWidget $widget    Control to compare.