I cooked up a more generic approach here -
It is not ready for review, of course (it should not bring up the Sources panel when you choose that option and there are no tests and there is a merge conflict). I wanted your opinion on the general approach, if you can.
I generalized it to always show up on ObjectPropertiesTreeElement. In scope variables, it should work without a user intervention (meaning, without manually prepending a variable name to the expression afterwards), but in other cases, the user will likely have to prepend something on their own, which is why I named it "Add property path to watch", since it works pretty much the same as "Copy property path".
I thought about helping the user a bit in case this is selected within the context of an object popover, by plumbing the original expression that triggered the popover in buildObjectPopover, (and from there to an ObjectPropertiesSection and ObjectPropertiesTreeElement or its root) but I was not sure it was worth it. Console object properties cannot be inferred, I would guess, because they can result from whatever it is that was evaluated there last. We can do some basic query, if the last evaluated string is /^[\w\[\]().];?$/.
Also, can I add (non-code) comments in Gerrit only after I start the review, or are my eyes missing a button/text box that lets me add a comment?
Thank you for the lead and the help!