void () { String testName = getTestName(false); runWithAdditionalClassEntryInSdkRoots(testName + "/site-packages", () -> { runWithAdditionalClassEntryInSdkRoots(testName + "/python_stubs", () -> { myFixture.copyDirectoryToProject(testName + "/src", ""); myFixture.configureByFile("main.py"); myFixture.completeBasic(); List<String> variants = myFixture.getLookupElementStrings(); assertNotNull(variants); assertDoesntContain(variants, "mypackage._impl.func"); assertContainsElements(variants, "mypackage.func_exported", "mypackage_util._impl.func"); }); }); }