87da4be9bb
Also reformat and slightly refactor it. This allows to get rid of dependency of 'util' on 'kotlin-reflect-api'.