PsiExpression (PsiPolyadicExpression expression, PsiJavaToken separator, CommentTracker ct) { PsiElement next = PsiTreeUtil.skipWhitespacesAndCommentsForward(separator); final int offsetInParent; if (next == null) { offsetInParent = separator.getStartOffsetInParent() + separator.getTextLength(); } else { ct.markRangeUnchanged(next, expression.getLastChild()); offsetInParent = next.getStartOffsetInParent(); } PsiElementFactory factory = JavaPsiFacade.getElementFactory(expression.getProject()); String rOperands = expression.getText().substring(offsetInParent); return factory.createExpressionFromText(rOperands, expression.getParent()); }