PyType (@NotNull PyClass cls, @NotNull TypeEvalContext context) { final PyClass classStub = as(PyiUtil.getPythonStub(cls), PyClass.class); if (classStub != null) { return new PyTypingTypeProvider().getGenericType(classStub, context); } return null; }