Chris Lee
09/18/2024, 9:34 PMfun canonicalText(importDirective: KtImportDirective) =
importDirective.importedFqName?.asString() +
" " +
importDirective.alias?.text?.replace("`", "") +
" " +
if (importDirective.isAllUnder) "*" else ""
val sortedImports = importList.imports.sortedBy(::canonicalText).distinctBy(::canonicalText)