We have a menu position rule that should only be applied based on the group types the node belongs to as a group relationship. A group content based condition plugin fits the bill and seems useful in general.
Active
2.2
Code
Attached is a patch to implement this.
Added compatibility with PHP 8.2 by not having properties created dynamically in the constructor.