code: @SuppressWarnings("ReferenceEquality")
      public synchronized void addRelatedDependency(Dependency dependency) {
          if (this == dependency) {
              LOGGER.warn("Attempted to add a circular reference - please post the log file to issue #172 here "
                      + "https://github.com/jeremylong/DependencyCheck/issues/172");
              LOGGER.debug("this: {}", this);
              LOGGER.debug("dependency: {}", dependency);
          } else if (!relatedDependencies.add(dependency)) {
              LOGGER.debug("Failed to add dependency, likely due to referencing the same file as another dependency in the set.");
              LOGGER.debug("this: {}", this);
              LOGGER.debug("dependency: {}", dependency);
          }
      }
docs: Adds a related dependency.
  
  @param dependency a reference to the related dependency