void () { myFixture.configureByText("FooTest.java", "import org.jun<caret>it.*; class FooTest {}"); PsiElement elementAtCaret = myFixture.getElementAtCaret(); assertInstanceOf(elementAtCaret, PsiPackage.class); PsiDirectory[] directories = PsiPackageImplementationHelperImpl.suggestMostAppropriateDirectories(((PsiPackage)elementAtCaret)); assertSize(1, directories); }