scala.tools.refactoring.implementations.OrganizeImports
Throws away all the imports and recomputes them.
Throws away all the imports and recomputes them. Should NOT be used when the units has errors.
Recomputes the imports and removes all existing imports not in the computed set.
Recomputes the imports and removes all existing imports not in the computed set. This mode preserves the user's formatting of imports, and is used for refactorings that modify imports but don't want to fully reorganize them.
Tries to remove unneeded imports, but don't throw them out when it's uncertain whether they are really unneeded.
Tries to remove unneeded imports, but don't throw them out when it's uncertain whether they are really unneeded. Should be safe when there are compile errors.