EZP-21422: Replaced assertType() with assertInternalType()