Detect declared names in try statements