title: PyCharm wrong unused import
body: <p>Consider this code:</p>
  
  <p>from AutomaticHacker import constants</p>
  
  <pre><code>if constants.QT5:
      from PyQt5.QtCore import QAbstractTableModel, pyqtSignal, QModelIndex, Qt, QAbstractItemModel, QSize
      from PyQt5.QtGui import QColor, QFont
  else:
      from PyQt4.QtCore import QAbstractTableModel, pyqtSignal, QModelIndex, Qt, QAbstractItemModel, QSize
      from PyQt4.QtGui import QColor, QFont
  </code></pre>
  
  <p>or see here: <a href="http://postimg.org/image/xrsntrsvz/" rel="nofollow">Screenshot</a></p>
  
  <p>PyCharm marks the whole line</p>
  
  <pre><code>from PyQt5.QtCore import QAbstractTableModel, pyqtSignal, QModelIndex, Qt, QAbstractItemModel, QSize
  </code></pre>
  
  <p>as unused import, although only QSize is not used. I know, I could simply remove QSize from import list. However, when optimizing imports automatically it would break my files.</p>
  
  <p>Any ways to fix this?</p>