PyType (@NotNull TypeEvalContext context, @NotNull TypeEvalContext.Key key) { final var resultExpr = getResultExpression(); final var cache = PyBuiltinCache.getInstance(this); final var setType = cache.getSetType(); if (setType != null && resultExpr != null) { final var type = context.getType(resultExpr); return new PyCollectionTypeImpl(setType.getPyClass(), false, Collections.singletonList(type)); } return setType; }