code: private IRExpression maybeGetFromEnclosingFunction( ICompilableType gsClass, TypeVariableType type, String strTypeVarField )
    {
      if( gsClass.isAnonymous() )
      {
        IDynamicFunctionSymbol dfs = getEnclosingDFS( gsClass );
        if( dfs != null && dfs != getEnclosingDFS( gsClass.getEnclosingType() ) )
        {
          for( IGenericTypeVariable gv : getTypeVarsForDFS( dfs ) )
          {
            if( gv.getName().equals( type.getName() ) )
            {
              return getInstanceField( gsClass, strTypeVarField, getDescriptor( LazyTypeResolver.class ), AccessibilityUtil.forTypeParameter(), pushThisOrOuter( gsClass ) );
            }
          }
        }
      }
      return null;
    }
docs: An anonymous class enclosed in a generic function has as a synthetic field the type parameter[s] from the function.