Mix both approaches : isModified + dependencies to determine the scope
and serialization comparison to narrow it and avoid false positives.