void () { myFixture.allowTreeAccessForFile(myFixture.copyFileToProject("MyLanguage.java")); myFixture.allowTreeAccessForFile(myFixture.copyFileToProject("MyLanguageAttributeEPBean.java")); myFixture.configureByFile("languageAttribute.xml"); LookupElement[] lookupElements = myFixture.complete(CompletionType.BASIC); assertLookupElement(lookupElements, "MyAnonymousLanguageID", null, "MyLanguage.MySubLanguage"); assertLookupElement(lookupElements, "MyLanguageID", null, "MyLanguage"); }