title: Java Lombok "@Getter" is not applicable to field
body: <p>I've been trying to get Lombok working in IntelliJ IDEA but whenever I try to use any of its annotations, I get an error message that goes like this:</p>
  
  <pre><code>Error:(5, 5) java: annotation type not applicable to this kind of declaration
  </code></pre>
  
  <p>My code looks like this, using their example on their homepage.</p>
  
  <pre><code>import jdk.nashorn.internal.objects.annotations.Getter;
  
  public class GetterSetterExample {
      @Getter
      private int age = 10;
  }
  </code></pre>
  
  <p>I have installed the lombok plugin, and enabled the annotation processor in settings. I'm using IntelliJ 15 with java 1.8.0_40.</p>
  
  <p>I can't find anyone with the same problem as me which is why I am asking here if anyone knows what's going on.</p>