Currently it doesn't widen before narrowing, which causes the import to be added in the middle of the file somewhere.