IDEA-CR-67207: wait until IDE has exited if --wait/-w is passed and IDE instance is not running (IDEA-249381)
IDEA-CR-67207: wait until IDE has exited if --wait/-w is passed and IDE instance is not running (IDEA-249381)

(cherry picked from commit 3550203c727121a02db38d982debbd1b91df87dd)

GitOrigin-RevId: 5c97107edbd88e514ae388099d3159dafd5f4f88
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community