title: Inheritance for builders in lombok
body: <p>I was trying to use lombok for my project. </p>
  
  <p>I have a class A:</p>
  
  <pre><code>@Data
  @Builder
  public class A {
      Integer a1;
  }
  </code></pre>
  
  <p>and a class B:</p>
  
  <pre><code>@Data
  public class B extends A {
      Integer b1;
  
      @Builder
      public B(Integer b1, Integer a1) {
          super(a1);
          this.b1 = b1;
      }
  }
  </code></pre>
  
  <p>I am getting an error saying builder() in B cannot override builder() in A, as return type in BBuilder is not compatible with return type in ABuilder. </p>
  
  <p>Is there some way to do this using lombok? 
  I do not want to write the complete builder for for B, unless I don't have any other option. </p>
  
  <p>PS: I have given explicit constructor for class B due to <a href="https://reinhard.codes/2015/09/16/lomboks-builder-annotation-and-inheritance/" rel="noreferrer">Issue</a>.
  I tried searching, but I could not find a good solution for the same.</p>