Minor. Replaced for with for each.
Added dependency class resolver -> function resolver.
KT-3577 Stack overflow when resolving SAM adapter (from completion, show parameters, etc)

 #KT-3577
Test for KT-3331 RuntimeException in frontend-java at TypeVariableResolverFromTypeDescriptors.getTypeVariable()

 #KT-3331 obsolete
Minor. Fixed assertion message.
Fixed loading SAM interfaces when they inherit abstract methods.