IDEA-108838 Wrong code when introducing variable in injection
(cherry picked from commit f119c2e)
cosmetics