&& !moduleToDependUpon.equals(focusedModule.getModuleName())) {
final ProjectMetadata dependencyProject = getProjectMetadata(moduleToDependUpon);
if (dependencyProject != null) {
final Pom dependencyPom = dependencyProject.getPom();
if (!dependencyPom.getPath().equals(focusedModule.getPath())) {
final Dependency dependency = dependencyPom
.asDependency(COMPILE);
if (!focusedModule
.hasDependencyExcludingVersion(dependency)) {
addDependency(focusedModule.getModuleName(), dependency);
detectCircularDependency(focusedModule, dependencyPom);