GROOVY-6548: improve import command

- validate import statement is single command
- check duplicates without considering semicolon
- store and show list of imports without leading "import " prefix
- proper unit test for the command