boolean (@NotNull PyCollectionType expected, @NotNull PyTupleType actual, @NotNull MatchContext context) { if (!matchClasses(expected.getPyClass(), actual.getPyClass(), context.context)) { return false; } final PyType superElementType = expected.getIteratedItemType(); final PyType subElementType = actual.getIteratedItemType(); return match(superElementType, subElementType, context).orElse(true); }