[TASK] Fix CGL violations in function checkSameAddresses()