How to deal with the warning "Method overwrite conflict for ... Skipping the method" int the log?

There are two Fabric mods:
A:

package a...;
import ...
Mixin(AbstractMinecartEntity.class)
public class AbstractMinecartEntityMixin extends Entity {
    ...
    @Override public ActionResult intercat(...) {}
    ...
}

B:

package b...;
import ...
Mixin(AbstractMinecartEntity.class)
public class AbstractMinecartEntityMixin extends Entity {
    ...
    @Override public ActionResult intercat(...) {}
    ...
}

If I add these two mods at the same time, only one can run normally and the log says that “Method overwrite conflict …”
How can I deal with it elegantly?

This isn’t related to Sponge. Mixins have their own wiki, and I suggest using the channel #mixins on Sponge’s Discord.

Thank you so much.