Fixed detection of setter in case of getter with covariant return type narrowing

Issue: SPR-10995
(cherry picked from commit 045f78e)
Polishing
(cherry picked from commit 6021822)
Avoid NPE in hasUnresolvableGenerics()

Issue: SPR-11034