void (@NotNull String path, boolean has) { VirtualFile found = myFixture.findFileInTempDir(path); assertNotNull(found); PsiDirectory dir = PsiManager.getInstance(myFixture.getProject()).findDirectory(found); assertNotNull(dir); Icon icon = PsiIconUtil.getProvidersIcon(dir, 0); assertEquals(AllIcons.Nodes.Package.equals(IconTestUtil.unwrapIcon(icon)), has); }