9e014e462b
This allows to get rid of dependency of this code on CommonPlatforms, which depends on all platforms (JVM, JS, Native), and eventually move it to 'frontend'.