class ClassPathResult {

  public ImmutableSet<ClassPathEntry> getClassPathEntries(String coordinates) {
    ImmutableSet.Builder<ClassPathEntry> builder = ImmutableSet.builder();
    for (ClassPathEntry entry : classPath) {
      for (DependencyPath dependencyPath : dependencyPaths.get(entry)) {
        if (dependencyPath.size() > 1) {
          Artifact artifact = dependencyPath.get(1);
          if (Artifacts.toCoordinates(artifact).equals(coordinates)) {
            builder.add(entry);
          }
        }
      }
    }
    return builder.build();
  }

  public  ClassPathResult(
      ListMultimap<ClassPathEntry, DependencyPath> dependencyPaths,
      Iterable<UnresolvableArtifactProblem> artifactProblems);

}