Refactoring organize imports structure / Trying to fix issue when removing unused imports (still not finished).
When set to remove unused imports, only do that when it's manually activated. Also, improved code which tries to make sure that the code analysis with the information needed to remove unused imports is actually updated.