// "Replace method call on lambda with lambda body" "true-preview" import java.util.function.BinaryOperator; public class Main { public static void main(String[] args) { int l = 1; int q = 2; System.out.println(l + " " + q); l = ((BinaryOperator) (i, _) -> i).apply(q, q = l); System.out.println(l + " " + q); } }