The best solution would require a many-to-many map

This mapping has 1 multi-map group: several pairings are equally correct there. The code view shows one arbitrary valid pairing, not the only one.

Before

1package mill.integration
2
3import mill.constants.{EnvVars, OutFiles}
4import mill.testkit.UtestIntegrationTestSuite
5import utest._
6
7object OutputDirectoryTests extends UtestIntegrationTestSuite {
8
9 def tests: Tests = Tests {
…lines 10–42 unchanged (33 lines)

After

1package mill.integration
2
3import mill.constants.EnvVars
4import mill.constants.OutFiles.OutFiles
5import mill.testkit.UtestIntegrationTestSuite
6import utest._
7
8object OutputDirectoryTests extends UtestIntegrationTestSuite {
9
10 def tests: Tests = Tests {
…lines 11–43 unchanged (33 lines)

Before

compilation_unit
package_clause
package "package"
package_identifier
identifier "mill"
. "."
identifier "integration"
import_declaration
import "import"
identifier "mill"
. "."
identifier "constants"
. "."
namespace_selectors
{ "{"
identifier "EnvVars"
, ","
identifier "OutFiles" any 1:2
} "}"
import_declaration
import "import"
identifier "mill"
. "."
identifier "testkit"
. "."
identifier "UtestIntegrationTestSuite"
import_declaration
import "import"
identifier "utest"
. "."
namespace_wildcard
_ "_"
object_definition (+296 nodes collapsed)

After

compilation_unit
package_clause
package "package"
package_identifier
identifier "mill"
. "."
identifier "integration"
import_declaration
import "import"
identifier "mill"
. "."
identifier "constants"
. "."
identifier "EnvVars"
import_declaration
import "import"
identifier "mill"
. "."
identifier "constants"
. "."
identifier "OutFiles" any 1:2
. "."
identifier "OutFiles" any 1:2
import_declaration
import "import"
identifier "mill"
. "."
identifier "testkit"
. "."
identifier "UtestIntegrationTestSuite"
import_declaration
import "import"
identifier "utest"
. "."
namespace_wildcard
_ "_"
object_definition (+296 nodes collapsed)