Fixed KT-6128 Code completion does not work inside function literal if it's dependant on declarations below

 #KT-6128 Fixed