title: How to rename all package names to lowercase
body: <p>I have a large project with many packages that are CamelCase. I want to rename all of them to lowercase e.g:</p>
  
  <p><code>main.MyPackages.Utils</code> to <code>main.mypackages.utils</code></p>
  
  <hr>
  
  <p>What is the best/fastest way to do so?</p>
  
  <ol>
  <li>The first approach I was thinking about was using the IDE (Eclipse
  in my case), but this is a lot of work and does not always work
  because in some cases it thinks the package already exists.</li>
  <li>The second approach would be to write a program myself which handles
  this. The program should rename all folders to lowercase and replace
  all import statements in java files with lowercase packages.
  Sounds easier than it actually is, because renaming/moving non empty directories requires some extra work and on Windows it is not possible to create a new directory with lowercase name using Java.</li>
  </ol>
  
  <p>Is there a better way than the two mentioned approaches? If not I will go with approach two. Maybe using a UNIX OS would be better.</p>