public @NotNull Collection<File> resolveDependency(String groupId,
                                                     String artifactId,
                                                     String version,
                                                     boolean includeTransitiveDependencies,
                                                     List<String> excludedDependencies) throws Exception {
    Collection<Artifact> artifacts = resolveDependencyAsArtifact(groupId, artifactId, version, EnumSet.of(ArtifactKind.ARTIFACT),
                                                                 includeTransitiveDependencies, excludedDependencies);
    if (artifacts.isEmpty()) {
      return Collections.emptyList();
    }

    List<File> files = new ArrayList<>(artifacts.size());
    for (Artifact artifact : artifacts) {
      files.add(artifact.getFile());
    }
    return files;
  }
public @NotNull Collection<File> resolveDependency(String groupId,
                                                     String artifactId,
                                                     String version,
                                                     boolean includeTransitiveDependencies,
                                                     List<String> excludedDependencies)