NXP-12742: fix sonar violation