void (PyFile module, List<PyCustomMember> members) { final PyQualifiedNameResolveContext context = PyResolveImportUtil.fromFoothold(module).copyWithPlainDirectories(); final PsiElement resolved = PyResolveImportUtil.resolveQualifiedName(QualifiedName.fromDottedString("numpy.testing"), context) .stream().findFirst().orElse(null); final PsiElement testingModule = PyUtil.turnDirIntoInit(resolved); members.add(new PyCustomMember("testing", testingModule)); }