code: public void swapInnerClassesForParents ()
      {
          ImportSet declarers = new ImportSet();
          Iterator<String> i = _imports.iterator();
          while (i.hasNext()) {
              String name = i.next();
              int dollar = name.indexOf('$');
              if (dollar >= 0) {
                  i.remove();
                  declarers.add(name.substring(0, dollar));
              }
          }
  
          addAll(declarers);
      }
docs: Replaces inner class imports (those with a '$') with an import of the parent class.