PsiExpression (@NotNull PsiElement e, @NotNull PsiPolyadicExpression expression) { final TextRange elementTextRange = e.getTextRange(); for (PsiExpression operand : expression.getOperands()) { final TextRange operandTextRange = operand.getTextRange(); if (operandTextRange != null && operandTextRange.contains(elementTextRange)) { return operand; } } return null; }