code: public static void mergeDependencies(final Dependency dependency, final Dependency relatedDependency,
              final Set<Dependency> dependenciesToRemove) {
          LOGGER.debug("Merging '{}' into '{}'", relatedDependency.getFilePath(), dependency.getFilePath());
          dependency.addRelatedDependency(relatedDependency);
          relatedDependency.getEvidence(EvidenceType.VENDOR).forEach((e) -> {
              dependency.addEvidence(EvidenceType.VENDOR, e);
          }
docs: Adds the relatedDependency to the dependency's related dependencies.
  
  @param dependency the main dependency
  @param relatedDependency a collection of dependencies to be removed from
  the main analysis loop, this is the source of dependencies to remove
  @param dependenciesToRemove a collection of dependencies that will be
  removed from the main analysis loop, this function adds to this
  collection