fun canFormat(assertion: Assertion): Boolean
Returns true if the given assertion is an AssertionGroup and its type is T or a sub type.