void () { Consumer<VirtualFile> fileConsumer = file -> { doMultiFileAutoImportTest("Import", fix -> { final List<String> candidates = ContainerUtil.map(fix.getCandidates(), c -> c.getPresentableText()); assertNotNull(candidates); assertContainsElements(candidates, "collections.abc.Sized"); assertDoesntContain(candidates, "collections.Sized"); return false; }); }; runWithAdditionalFileInLibDir( "_collections_abc.py", """ __all__ = ["Sized"] __name__ = "collections.abc" class Sized: pass """, fileConsumer ); }