Using the logic from `OverridingUtil.isMoreSpecific` as a reference.
CachedSyntheticDeclarations
backend.common