Literally device in line 4
'Leafy sky' is an example of transferred epithet: A transferred epithet is a figure of speech in which an epithet (or adjective) grammatically qualifies a noun other than the person or thing it is actually describing. The sky is not leafy, a tree is: it is used to convey that the silhouette of the leafy tree is seen against the sky.