void () { final String testDir = getTestName(true); runWithAdditionalClassEntryInSdkRoots(testDir + "/site-packages", () -> { runWithAdditionalClassEntryInSdkRoots(testDir + "/python_stubs", () -> { PyClass ndarrayClass = PyClassNameIndex.findClass("numpy.core._multiarray_umath.ndarray", myFixture.getProject()); QualifiedName canonicalImportPath = QualifiedNameFinder.findCanonicalImportPath(ndarrayClass, null); assertEquals(QualifiedName.fromDottedString("numpy"), canonicalImportPath); }); }); }