import lombok.experimental.Wither; class WitherPlain { @lombok.experimental.Wither int i; final @Wither int foo; WitherPlain(int i, int foo) { super(); this.i = i; this.foo = foo; } public @java.lang.SuppressWarnings("all") WitherPlain withI(final int i) { return ((this.i == i) ? this : new WitherPlain(i, this.foo)); } public @java.lang.SuppressWarnings("all") WitherPlain withFoo(final int foo) { return ((this.foo == foo) ? this : new WitherPlain(this.i, foo)); } }