@SuppressWarnings({"unchecked"})
Set<ModuleRevisionId> dependencies = (Set<ModuleRevisionId>) configurationReport.getModuleRevisionIds();
for (ModuleRevisionId dependency : dependencies) {
if (moduleDependencies.isInternalIntellijModuleDependency(dependency.getModuleId())) {
resolvedDependencies.add(new InternalDependency(moduleDependencies.getModuleDependency(dependency.getModuleId())));
} else {
final Project project = moduleDependencies.getModule().getProject();
final ArtifactDownloadReport[] artifactDownloadReports = configurationReport.getDownloadReports(dependency);
for (ArtifactDownloadReport artifactDownloadReport : artifactDownloadReports) {
final Artifact artifact = artifactDownloadReport.getArtifact();