copyInputStreamToFile method does not exist
<p>I'm trying to use the copyInput method in my code, but seems like Intellij told me that the method does not exist</p>

<p>FileUtils.copyInputStreamToFile(response.getEntity().getContent(), downloadedFile);</p>

<p>I'm using the code from here</p>

<p><a href="http://ardesco.lazerycode.com/index.php/2012/07/how-to-download-files-with-selenium-and-why-you-shouldnt/" rel="noreferrer">http://ardesco.lazerycode.com/index.php/2012/07/how-to-download-files-with-selenium-and-why-you-shouldnt/</a></p>

<p>But it seems like the method exist here</p>

<p><a href="https://commons.apache.org/proper/commons-io/javadocs/api-2.4/org/apache/commons/io/FileUtils.html" rel="noreferrer">https://commons.apache.org/proper/commons-io/javadocs/api-2.4/org/apache/commons/io/FileUtils.html</a></p>

<p>I'm using maven, I tried with 2.0, 2.1, 2.4 without luck</p>

<pre><code>    &lt;dependency&gt;
        &lt;groupId&gt;commons-io&lt;/groupId&gt;
        &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
        &lt;version&gt;2.2&lt;/version&gt;
    &lt;/dependency&gt;
</code></pre>

<p>Java 1.8</p>

<p>Here is the error message </p>

<p>Error:(201, 22) java: cannot find symbol
  symbol:   method copyInputStreamToFile(java.io.InputStream,java.io.File)
  location: class org.apache.commons.io.FileUtils</p>

<p><a href="https://i.stack.imgur.com/H9udE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/H9udE.png" alt="enter image description here"></a></p>