code: private static String nonAnonymous(String typeName) {
          int anonymousLoaderIndex = typeName.indexOf('/');
          return anonymousLoaderIndex == -1
                  ? typeName
                  : typeName.substring(0, anonymousLoaderIndex);
      }
docs: Normalizes a type name if it is loaded by an anonymous class loader.
  
  @param typeName The name as returned by {@link Class#getName()}.
  @return The non-anonymous name of the given class.