title: How to fix package names in IntelliJ?
body: <p>Is it possible to fix all the package names in a given folder in IntelliJ?</p>
  
  <p>If files are manually imported into IntelliJ, and their package names are all wrong (including the sub-folders), how can I mass fix the package names?</p>
  
  <p>This has caused me a lot of grief so far....</p>
  
  <p><b>moving to a package or renaming a package</b></p>
  
  <p>This has to be a bug.</p>
  
  <p>Example:</p>
  
  <p>If I am on a package in the project explorer, and rename the package, say it is:</p>
  
  <pre><code>com.example.xml.xml
  </code></pre>
  
  <p>Now I want to change this (and all the files under it) to:</p>
  
  <pre><code>com.example.xml
  </code></pre>
  
  <p>I can't seem to do it!  </p>
  
  <p>When it says "rename package com.example.xml.xml to":</p>
  
  <p>If I enter "com.example.xml" it won't work.  I'm not sure what it is going on, I have spent a over an hour trying this as I have more files to import/fix.</p>