code: private File generateDOTFile(AddonDependencyResolver addonResolver, AddonId id, String fileName)
     {
        File parent = new File(outputDirectory);
        parent.mkdirs();
        File file = new File(parent, fileName);
        getLog().info("Generating " + file);
        AddonInfo addonInfo = addonResolver.resolveAddonDependencyHierarchy(id);
        toDOT(file, toGraph(addonResolver, addonInfo));
        return file;
     }
docs: Generates the DOT file for a given addonId
  
  @param addonResolver
  @param id
  @return generated file