IDEA-106711 Groovy: intention: replace if with conditional