importOnce

abstract fun importOnce(module: DI.Module, allowOverride: Boolean = false)

Like import but checks that will only import each module once.

If the module has already been imported, nothing happens.

Careful: this is checked by name. If two modules share the same name, only one will be imported!