title: IDE does not show getters and setters generated by Lombok for a Jackson annotated class
body: <p>I use Intellij Idea 2019.1.2 community edition for my Java projects. I have a Jackson 2.9.6 annotated POJO which uses Lombok 1.18.0 to generate the getters and setters for the pojo. I have some "client" code to deserialize a sample Json text to the Pojo class. The deserialization works fine, without any compilation issues and the class file for the pojo actually has all the getters and setters. But, the IDE does not show any getters and setters for the pojo in the "client" code.</p>
  
  <p>Invalidating the caches of the IDE and restarting it did not solve the problem. How do I find out the cause for this problem and fix it ?</p>
  
  <p><strong>Sample Json :</strong></p>
  
  <pre><code>{
      "id": "1234",
      "number" : 1,
      "items" : [
          {
              "item1" : "blah...more fields."
          },
          {
              "item2" : "blah...more fields."
          }
      ],
      "someBigObject:" : {
          "my_comment" : "i don't really care about validating this object.",
          "fields" : "more fields here",
          "objects" : "more objects here"
      },
      "message" : "hello"
  }
  </code></pre>
  
  <p><strong>Pojo for above Json, generated by <a href="http://www.jsonschema2pojo.org/" rel="nofollow noreferrer">http://www.jsonschema2pojo.org/</a> :</strong></p>
  
  <pre><code>import java.util.HashMap;
  import java.util.List;
  import java.util.Map;
  import com.fasterxml.jackson.annotation.JsonAnyGetter;
  import com.fasterxml.jackson.annotation.JsonAnySetter;
  import com.fasterxml.jackson.annotation.JsonIgnore;
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.annotation.JsonProperty;
  import com.fasterxml.jackson.annotation.JsonPropertyOrder;
  
  import lombok.Data;
  import lombok.NoArgsConstructor;
  import lombok.NonNull;
  
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @JsonPropertyOrder({
          "id",
          "number",
          "items",
          "someBigObject:",
          "message"
  })
  @Data
  @NoArgsConstructor
  public class Example {
      @JsonProperty("id")
      @NonNull public String id;
      @JsonProperty("number")
      public Long number;
      @JsonProperty("items")
      public List&lt;Item&gt; items = null;
      @JsonProperty("someBigObject:")
      public Object someBigObject;
      @JsonProperty("message")
      public String message;
      @JsonIgnore
      private Map&lt;String, Object&gt; additionalProperties = new HashMap&lt;String, Object&gt;();
  
      @JsonAnyGetter
      public Map&lt;String, Object&gt; getAdditionalProperties() {
          return this.additionalProperties;
      }
  
      @JsonAnySetter
      public void setAdditionalProperty(String name, Object value) {
          this.additionalProperties.put(name, value);
      }
  
      @JsonInclude(JsonInclude.Include.NON_NULL)
      @JsonPropertyOrder({
              "item1",
              "item2"
      })
      @Data
      @NoArgsConstructor
      public static class Item {
          @JsonProperty("item1")
          public String item1;
          @JsonProperty("item2")
          public String item2;
          @JsonIgnore
          private Map&lt;String, Object&gt; additionalProperties = new HashMap&lt;String, Object&gt;();
  
          @JsonAnyGetter
          public Map&lt;String, Object&gt; getAdditionalProperties() {
              return this.additionalProperties;
          }
  
          @JsonAnySetter
          public void setAdditionalProperty(String name, Object value) {
              this.additionalProperties.put(name, value);
          }
      }
  
  }
  </code></pre>
  
  <p><strong>Sample code to try the above pojo :</strong></p>
  
  <pre><code>import com.fasterxml.jackson.databind.DeserializationFeature;
  import com.fasterxml.jackson.databind.ObjectMapper;
  
  import java.io.IOException;
  
  public class JunkTest {
      public static void main(String [] args) throws IOException {
          String json = "Put the json here !!!";
          ObjectMapper mapper = new ObjectMapper();
          mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES,false);
          Example pojo = mapper.readValue(json, Example.class);
          pojo.getClass();//Cannot see any other getters and setters !
      }
  
  }
  </code></pre>