PyExpression (@NotNull Project project, @NotNull PyBinaryExpression binaryExpression) { final ArrayList<PyExpression> elements = new ArrayList<>(); final ArrayList<String> operators = new ArrayList<>(); collectExpressionsDfs(elements, operators, binaryExpression); PyExpression resultExpression = buildResultExpression(project, elements, operators); return ObjectUtils.chooseNotNull(resultExpression, binaryExpression); }