Fix for [Bug 436139] [1.8][search][model] Hierarchy search involving
lambda and anonymous class do not find the anonymous class