d188ee8e-9ecf-4cdb-8de9-869753686ef8
You can add an extra parameter and a type trait to check whether second parameter is Bar.
Bar