I've got code which looks something like this:
// do something
// do something else
The "unnecessary return" inspection picks up the return statement as unnecessary.
While I recognise that, strictly speaking, it is unnecessary, I put it there as clearer documentation that I'll return from the method here.
I want to leave it there in case I decide to add some more code to the method after the "if" statement.
So, would it be possible to separate out "return" statements which occur as the last statement in the main "block" of the method, from those that occur within the blocks within the method?