void () { PsiDirectory psiDirectory = getPackageDirectory("com/package1"); assertNotNull(psiDirectory); PsiPackage psiPackage = JavaDirectoryService.getInstance().getPackage(psiDirectory); assertNotNull(psiPackage); PsiClass[] classes = psiPackage.getClasses(); BaseProjectViewTestCase.sortClassesByName(classes); PsiFile file = classes[0].getContainingFile(); DependencyUISettings.getInstance().SCOPE_TYPE = PackagePatternProvider.PACKAGES; doTestDependenciesTrees(new AnalysisScope(file), """ -Root Library Classes -Production Classes -com.package1 [Class1.java] Test Classes """, """ -Root Library Classes -Production Classes -com.package1 Class2.java Test Classes """); }