title: IntelliJ - AutoCompletion not working for new package
body: <p>I am testing a few Java API, I've created my project called 'MyLearning' where all my src files are located, in src I created another Package callede 'myfiles', now when I import the <code>java.nio.file.Files</code> API, IntelliJ doesn't show me suggestions for this class. But in the main package i.e <code>src</code> folder, the suggestion works totally fine.</p>
  
  <p>Example:
  <a href="https://i.stack.imgur.com/TVBA7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TVBA7.png" alt="enter image description here"></a></p>
  
  <p>The above picture shows my main src folder, where the <code>Files</code> API works totally fine.</p>
  
  <p><a href="https://i.stack.imgur.com/QfTl2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QfTl2.png" alt="enter image description here"></a></p>
  
  <p>But then in the new Package that I've created i.e myfiles, it is showing error on retrieving the methods of Files API. Error is </p>
  
  <blockquote>
    <p>Cannot resolve symbol 'exists'</p>
  </blockquote>
  
  <p>Can anyone tell me what could be the poblem here?</p>