import java.util.Map; public class SuperBuilderWithGenericsAndToBuilder { @lombok.experimental.SuperBuilder(toBuilder = true) public static class Parent { A field1; @lombok.Singular Map items; } @lombok.experimental.SuperBuilder(toBuilder = true) public static class Child extends Parent { double field3; } public static void test() { Child x = Child.builder().field3(0.0).field1(5).item(5, "").build().toBuilder().build(); } }