/**
  * Returns <code>true</code> if this is a local type, or if this type is nested inside of any
  * local type.
  */
 private static boolean isLocalType(ClassFile classFile) {
   SourceTypeBinding b = classFile.referenceBinding;
   while (!b.isStatic()) {
     if (b instanceof LocalTypeBinding) {
       return true;
     }
     b = ((NestedTypeBinding) b).enclosingType;
   }
   return false;
 }