List<PyClassType> (@NotNull PyClass pyClass, @NotNull TypeEvalContext context) { List<PyClassType> results = new ArrayList<>(); for (PyExpression superClassExpression : PyClassElementType.getSuperClassExpressions(pyClass)) { PsiFile containingFile = superClassExpression.getContainingFile(); if (containingFile instanceof PyExpressionCodeFragment) { containingFile.putUserData(FRAGMENT_OWNER, pyClass); } PyType type = Ref.deref(getType(superClassExpression, context)); if (type instanceof PyClassType classType) { results.add(classType); } } return results; }