code: private boolean resolveViaRegistry(ErrorReporter reporter) {
      JSType type = registry.getType(resolutionScope, reference);
      if (type != null) {
        setReferencedAndResolvedType(type, reporter);
        return true;
      }
      return false;
    }
docs: Resolves a named type by looking it up in the registry.
  @return True if we resolved successfully.