Collection<PyCustomMember> (@NotNull PyFile module, @NotNull String qName, @NotNull TypeEvalContext context) { if ("numpy".equals(qName)) { final PyResolveContext resolveContext = PyResolveContext.defaultContext(context); final PsiElement clazz = new PyPsiPath.ToClassQName(DTYPE).resolve(module, resolveContext); if (clazz != null) { final List<PyCustomMember> members = new ArrayList<>(); for (String type : NUMERIC_TYPES) { members.add(new PyCustomMember(type, clazz, DTYPE)); } for (String type : PYTHON_TYPES) { members.add(new PyCustomMember(type, clazz, DTYPE)); } addTestingModule(module, members); return members; } } return Collections.emptyList(); }