code: function lookupAndFind(namespace, name, typeFilter) {
          var ref = namespace.lookup(name, typeFilter);
          if (ref === null) {
              ref = find(function (elem) {
                  return ((elem instanceof typeFilter) && (elem.name === name));
              });
          }
          return ref;
      }
docs: Lookup an element and then find. (See `Element.prototype.lookup` and `find`).
  @param {!Element} namespace Element to start to lookup.
  @param {string} name Name of element to find
  @param {constructor} typeFilter Type filter. (e.g. `type.UMLClass`)
  @return {Element} A matched element.