void (PsiAssignmentExpression assignmentExpression, PsiReturnStatement returnStatement, @NotNull ModPsiUpdater updater) { PsiElement assignmentParent = assignmentExpression.getParent(); LOG.assertTrue(assignmentParent instanceof PsiExpressionStatement, "PsiExpressionStatement"); PsiReturnStatement returnStatementCopy = (PsiReturnStatement)returnStatement.copy(); PsiExpression rExpression = assignmentExpression.getRExpression(); PsiExpression returnValue = returnStatementCopy.getReturnValue(); if (rExpression != null && returnValue != null) { returnValue.replace(rExpression); replaceStatementKeepComments((PsiExpressionStatement)assignmentParent, returnStatementCopy, updater); } }