Yandex has no way out of Russia. Most of its businesses are russian-targeted and going “full outside” makes zero sense for them, because to continue they’d have to bow before authorities anyway. As a media company, to condemn the war for them meant being instantly raided and re-owned, which sure isn’t far from truth, just was less dramatic.
Agreed that exiting the country was much easier for JetBrains who are more internationally focused. But my belief is that Yandex leadership made a strategic mistake in not spinning off their core businesses to Europe. They had a chance at establishing themselves as an EU-first search engine, mail provider and cloud that can compete at the equal footing with Google. Yet they blew it and now they are FSB owned in everything but name.