public static boolean hasArtifactFile(File localRepository, MavenId id, String type) {
    return Files.exists(getArtifactFile(localRepository, id, type));
  }
public static boolean hasArtifactFile(File localRepository, MavenId id, String type)