The Move Statement Up/Down action is useful for reorganizing the your code, e.g., for bringing a variable declaration closer to variable usage.
Select a code fragment and press Control/Cmd + Shift + Up or Control/Cmd + Shift + Down.