#KT-60124 Fixed #KT-60573 Fixed
TODO get rid of duplicate diagnostics (looks like OverloadResolver and DeclarationResolver are partially redundant; refactor them).