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