anchor.diff:      {
         UriKind uriKind = library.source.uriKind;
         // Optionally skip package: libraries.
  -      if (!options.showPackageWarnings && uriKind == UriKind.PACKAGE_URI) {
  +      if (!options.showPackageWarnings && _isOtherPackage(library.source.uri)) {
           return;
         }
         // Optionally skip SDK libraries.
  
positive.code:       }
        return options.showSdkWarnings;
      }
      if (source.uri.scheme == 'package') {
        return options.showPackageWarnings;
      }
      return true;
  
negative.code:     if (computeSeverity(error, options.enableTypeChecks) ==
              ErrorSeverity.INFO &&
          options.disableHints) {
        return false;
      }
      return true;
    }
  
    /**
     * Determine whether the given URI refers to a package other than the package
     * being analyzed.
     */
    bool _isOtherPackage(Uri uri) {
      if (uri.scheme != 'package') {
        return false;
      }
      if (_selfPackageName != null &&
          uri.pathSegments.length > 0 &&
          uri.pathSegments[0] == _selfPackageName) {
        return false;
      }
      return true;
  