EReference reference = (EReference)feature;
EReference opposite = reference.getEOpposite();
if (opposite != null)
{
notifications = object.eInverseRemove(owner, object.eClass().getFeatureID(opposite), null, notifications);
notifications = ((InternalEObject)resolved).eInverseAdd(owner, resolved.eClass().getFeatureID(opposite), null, notifications);
}
else if (reference.isContainment())
{
int inverseFeatureID = InternalEObject.EOPPOSITE_FEATURE_BASE - owner.eClass().getFeatureID(reference);