import lombok.val; public class ValWithSelfRefGenerics { public void run(Thing> thing, Thing thing2, java.util.List z) { val y = z; val x = thing; val w = thing2; val v = thing2.get(); } } class Thing> { public T get() { return null; } }