void (PsiReturnStatement returnStatement, @NotNull ModPsiUpdater updater) { ReturnContext context = createReturnContext(returnStatement); if (context != null) { ControlFlow flow = createControlFlow(context); if (flow != null) { Mover mover = new Mover(flow, context.refactoredStatement, context.returnedVariable, context.returnType, false); boolean removeReturn = mover.moveTo(context.refactoredStatement, true); if (!mover.isEmpty()) { applyChanges(mover, context, removeReturn, updater); deleteRedundantVariable(context, updater); } } } }