There's a problem with this function right now - what if you have two connections for the same project? It would select the first of them and that might not be what you'd like. Perhaps if we have more than one matching connection it'd be best to simply display a message that there's some ambiguity.