boolean (@NotNull PyStructuralType expected, @NotNull PyStructuralType actual) { if (expected.isInferredFromUsages()) { return true; } return expected.getAttributeNames().containsAll(actual.getAttributeNames()); }