void () { Module a = createModule("a"); Module b1 = createModule("b1"); Module b2 = createModule("b2"); Module c = createModule("c"); ModuleRootModificationUtil.addDependency(a, b1); ModuleRootModificationUtil.addDependency(a, b2); ModuleRootModificationUtil.addDependency(b1, c, DependencyScope.COMPILE, true); ModuleRootModificationUtil.addDependency(b2, c, DependencyScope.COMPILE, true); assertEmpty(findReachableViaThisDependencyOnly(a, b1)); }