List<PyClass> (@Nullable final TypeEvalContext context) { final List<PyClass> results = new ArrayList<>(); for (final PyClassLikeType type : getAncestorTypes(notNullizeContext(context))) { if (type instanceof PyClassType) { results.add(((PyClassType)type).getPyClass()); } } return results; }