title: Cannot find reference - package and inner package with same name
body: <p>I've just started working on some big project and I faced the problem with referencing the right file from the package. The structure looks like:</p>
  
  <pre><code>root
    ├ test
    |  └__init__.py
    |  └foo
    |    └__init.py
    |    └test
    |      └__init__.py
    |      └bar.py 
    └ main.py
  </code></pre>
  
  <p>There's a single method called foo() in the bar.py file. In the main.py there's import like:</p>
  
  <pre><code>from test import bar
  
  test.foo()
  </code></pre>
  
  <p>and as I know people were running this app and working on it for a long time. As I know they weren't using PyCharm. As I loaded the project into PyCharm it has shown me an error</p>
  
  <pre><code>Cannot find reference 'bar' in '__init__.py
  </code></pre>
  
  <p>Is there any solution to set up the PyCharm to run it?</p>