void () { LookupElement[] lookupElements = doExtendedCompletion(); LookupElement ndarray = ContainerUtil.find(lookupElements, variant -> variant.getLookupString().equals("ndarray")); assertNull(ndarray); PyClass ndarrayUserSkeleton = PyClassNameIndex.findClass("numpy.core.multiarray.ndarray", myFixture.getProject()); if (ndarrayUserSkeleton == null) { System.out.println("Dumb mode: " + DumbService.isDumb(myFixture.getProject())); dumpSdkRoots(); } assertNotNull(ndarrayUserSkeleton); assertTrue(PyUserSkeletonsUtil.isUnderUserSkeletonsDirectory(ndarrayUserSkeleton.getContainingFile())); }