String (List<? extends PsiExpression> expressionsToKeep, PsiExpression root) { Node result = StreamEx.ofReversed(expressionsToKeep).map(expression -> createNode(expression, root)).foldLeft(EMPTY, Node::prepend); return result.toString(); }