add enclosing class name when register generated inner classes