void (PsiExpression expression, boolean parentheses, StringBuilder out) { if (parentheses) { out.append('('); } for (PsiElement child = expression.getFirstChild(); child != null; child = child.getNextSibling()) { if (child instanceof PsiExpression) { createReplacementText((PsiExpression)child, out); } else { out.append(child.getText()); } } if (parentheses) { out.append(')'); } }