Smart completion: generic functions are correctly included into the list

 #KT-6375 Fixed