"Unwrap/Remove" action (delete enclosing statement)
You can use the action to quickly extract or remove statements from an enclosing statement (such as if, while, for, etc.).
The supported statements are: for, foreach, if..elseif...else, try...catch...finally, while...do, do...while, and lone braces.
The statements to be extracted are highlighted with blue, to be removed - with grey.
The code before unwrapping the first else branch:
The code after unwrapping:
The code before removing the first else branch: