import lombok.Singular; @lombok.Builder(toBuilder = true, setterPrefix = "with") class BuilderSingularToBuilderWithNullWithSetterPrefix { @Singular private java.util.List elems; public static void test() { new BuilderSingularToBuilderWithNull(null).toBuilder(); } }