PsiExpression (PsiPolyadicExpression andChain, PsiExpression operand) { PsiExpression rOperands; if (operand == ArrayUtil.getLastElement(andChain.getOperands())) { rOperands = PsiUtil.skipParenthesizedExprDown(operand); } else { rOperands = SplitConditionUtil.getROperands(andChain, andChain.getTokenBeforeOperand(operand)); // To preserve mark ((PsiPolyadicExpression)rOperands).getOperands()[0].replace(operand); } return rOperands; }