newName

fun newName(suggestion: String, tag: Any = Random.nextULong().toString(16).padStart(16, '0')): String

Return a new name using suggestion that will not be a Java identifier or clash with other names. The returned value can be queried multiple times by passing tag to NameAllocator.get.