void (@NotNull Project project, @NotNull PsiElement psiElement, @NotNull ModPsiUpdater updater) { final PsiAssignmentExpression assignmentExpression = PsiTreeUtil.getParentOfType(psiElement, PsiAssignmentExpression.class); if (assignmentExpression == null) { return; } final PsiElementFactory factory = JavaPsiFacade.getElementFactory(project); final String lExpressionText = assignmentExpression.getLExpression().getText(); final PsiExpression rExpression = assignmentExpression.getRExpression(); final String rExpressionText = rExpression != null ? rExpression.getText() : ""; assignmentExpression.replace(factory.createExpressionFromText(lExpressionText + " = " + rExpressionText, psiElement)); }