protected final void doEnforce(ErrorReport report) {
MavenProject mavenProject = EnforcerRuleUtils.getMavenProject(getHelper());
DependencyMatcher dependencyMatcher = new DependencyMatcher(getHelper());
BiMap<DependencyModel, DependencyModel> matchedDependencies =
dependencyMatcher.match(getMavenDependencies(mavenProject), getDeclaredDependencies());
Set<DependencyModel> resolvedDependencies = matchedDependencies.keySet();
if (!this.artifactOrdering.isOrdered(resolvedDependencies)) {
reportError(report, this.artifactOrdering.immutableSortedCopy(resolvedDependencies));
}