Yes - there are a number of melodic devices, and from what I remember, those occur IN the measure containing the note - surrounding and/or delaying the (arrival) note in question...Not in the prior measure.
This is why I asked regarding the term "enclosure".
One other point - if the chord was Dmin7, instead of D7, (preceding the Gmin7), that Gb/F# would be an avoid note, no matter what you call it. This may lead a beginning player to assume that the Gb/F# is "cool" on the Dmin7, because it is an "enclosure".
IMO. (No "H" anymore!).
Thanks for your time and interest.