Collection<Dependency> dependencies = EnforcerRuleUtils.getMavenProject(getHelper()).getDependencies();
for (Dependency dependency : dependencies) {
ArtifactModel artifactModel = DependencyToArtifactTransformer.INSTANCE.apply(dependency);
Collection<DependencyScope> allowedScopes = this.scopedDependencies.get(artifactModel);
DependencyScope dependencyScope = getScope(dependency);
if (!allowedScopes.isEmpty() && !allowedScopes.contains(dependencyScope)) {
report.formatLine("%s -> %s", dependency, Joiner.on(", ").join(allowedScopes));
}
}