// "Change type to 'int'" "true-preview"
import java.lang.invoke.*;

public class Main {
  void foo() throws Throwable {
    MethodHandles.Lookup lookup = MethodHandles.lookup();
    lookup.findVarHandle(Test.class, "myInt", int.class);
  }
}

class Test {
  public int myInt;
}