List<PyClassLikeType> (@NotNull TypeEvalContext context) { if (!myTypesToMimicAsSuperTypes) return Collections.emptyList(); final Set<PyClassLikeType> result = new LinkedHashSet<>(); for (PyClassLikeType type : myTypesToMimic) { result.add(type); result.addAll(type.getAncestorTypes(context)); } return new ArrayList<>(result); }