Hi,As a followup, Helmut's script is now available in unstable [1] and will probably soon be in testing. I'm going to give it a try with Gradle and Kotlin builds.
If anyone is interested in the alternative, shell-script implementation please let me know, as otherwise it's unlikely to ever end up packaged.
Cheers, [1]: https://tracker.debian.org/pkg/guess-concurrency -- Julien Plissonneau Duquène