void () { runWithAdditionalClassEntryInSdkRoots(getTestName(true) + "/site-packages", () -> { myFixture.copyDirectoryToProject(getTestName(true) + "/src", ""); myFixture.configureByFile("main.py"); LookupElement[] variants = myFixture.complete(CompletionType.BASIC, 2); assertNotNull(variants); List<String> variantQNames = ContainerUtil.mapNotNull(variants, PyClassNameCompletionTest::getElementQualifiedName); assertDoesntContain(variantQNames, "mypkg.test.test_mod.test_func"); assertContainsElements(variantQNames, "mod.func", "tests.test_func", "mypkg.mod.func"); }); }