This code relies on implementation details. What if actual type of ``ownerClassDescriptor`` is ``LazyClassDescriptor``? Replace it with ``receiverType.getMemberScope()``