void () { myFixture.addFileToProject("x/XXX.java", ""); myFixture.addFileToProject("otherRoot/x/XXX.java", ""); myFixture.addFileToProject("otherRoot/x/YYY.png", ""); PsiFile file = myFixture.addFileToProject("x/C.java", "class C { String s = \"/x/<caret>\" }"); myFixture.configureFromExistingVirtualFile(file.getVirtualFile()); myFixture.completeBasic(); assertOrderedEquals(myFixture.getLookupElementStrings(), "C.java", "XXX.java", "YYY.png"); }