Fixed KT-5341 Code completion of class declared locally inserts its "qualified name"

 #KT-5341 Fixed
Added test for KT-5272 which is not reproduced