KT-4274 #Fixed
Replace getParentByTypePredicate with getParentByTypesAndPredicate