void () { Module a = createModule("a"); Module b = createModule("b"); Library lib = PsiTestUtil.addProjectLibrary(myModule, "lib", Arrays.asList(), Collections.emptyList()); ModuleRootModificationUtil.addDependency(a, b); ModuleRootModificationUtil.addDependency(b, lib); assertEmpty(findReachableViaThisDependencyOnly(a, b)); }