getItemFromAnotherHandByItemInHand

fun getItemFromAnotherHandByItemInHand(player: Player, item: ItemStack): ItemStack?

Given that one hand holds item, returns the item in the other hand, or null if neither matches.