Collection<PyExpression> (@NotNull PyBinaryExpression expression) { List<PyExpression> res = new ArrayList<>(); if (expression.getLeftExpression() instanceof PyBinaryExpression) { res.addAll(getSimpleExpressions((PyBinaryExpression) expression.getLeftExpression())); } else { res.add(expression.getLeftExpression()); } if (expression.getRightExpression() instanceof PyBinaryExpression) { res.addAll(getSimpleExpressions((PyBinaryExpression) expression.getRightExpression())); } else { res.add(expression.getRightExpression()); } return res; }