void () { //B->A final CyclicDependenciesBuilder builder = new CyclicDependenciesBuilder(getProject(), new AnalysisScope(getProject())); builder.analyze(); final HashMap<PsiPackage, Set<List<PsiPackage>>> cyclicDependencies = builder.getCyclicDependencies(); HashMap<String, String[][]> expected = new HashMap<>(); expected.put("com.b", new String[0][0]); expected.put("com.a", new String[0][0]); checkResult(expected, cyclicDependencies, true); }