NXP-12641: fix sonar violation