* Move the given class to his grandparent (either class or package).
*/
@SuppressWarnings("unchecked")
private void moveClassLevelUp(Outline outline, JDefinedClass clazz) {
// Modify the container so it now refers the class. Container can be a class or package.
JClassContainer container = clazz.parentContainer().parentContainer();
// FIXME: Pending https://java.net/jira/browse/JAXB-957
if (container.isClass()) {
// Element class should be added as its container child:
JDefinedClass parentClass = (JDefinedClass) container;
writeSummary("\tMoving inner class " + clazz.fullName() + " to class " + parentClass.fullName());