This very issue is one of my pet peeves of working in Java/C, because extract-function refactoring is severely inhibited by having only 1 return value, and it forces you to pass in mutable values ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results