title: the method addHeader (String, String) is undefined for the type HttpGet
body: <p>I have this program:</p>
  
  <pre><code>import org.apache.http.client.HttpClient;
  import org.apache.http.client.methods.HttpGet;
  import org.apache.http.impl.client.HttpClientBuilder;
  
  public class ApplicationRESTFul {
  
      public static void main(String[] args) {
  
          String url = "http://www.google.com/search?q=httpClient";
  
          HttpClient client = HttpClientBuilder.create().build();
          HttpGet request = new HttpGet(url);
  
          request.addHeader("Accept", "application/json");
  
      }
  
  }
  </code></pre>
  
  <p>But I got this message from eclipse</p>
  
  <pre><code>the method addHeader (String, String) is undefined for the type HttpGet
  </code></pre>
  
  <p>I am using this library and as I see in the documentation , the method should exist (org.apache.httpcomponents.httpclient_4.5)</p>
  
  <p><a href="http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/methods/HttpGet.html" rel="nofollow noreferrer">http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/methods/HttpGet.html</a></p>
  
  <p><a href="https://i.stack.imgur.com/AuGaA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AuGaA.png" alt="enter image description here"></a></p>