Fixed smart completion of functions with "::"

 #KT-6073 Fixed