List<PyExpression> (@NotNull PyClass pyClass) { final PyClassStub classStub = pyClass.getStub(); if (classStub == null) { return List.of(pyClass.getSuperClassExpressions()); } return ContainerUtil.mapNotNull(classStub.getSuperClassesText(), x -> PyUtil.createExpressionFromFragment(x, pyClass.getContainingFile())); }