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, "pip._vendor.requests", "pip._vendor.requests.request"); assertContainsElements(variantQNames, "requests", "requests.request"); }); }