code: private static <T, G extends T> void generateSetInterceptor(DexMaker dexMaker,
                                                                  TypeId<G> generatedType,
                                                                  TypeId<T> baseType) {
          final FieldId<G, Interceptor> interceptorField =
                  generatedType.getField(INTERCEPTOR_TYPE, FIELD_NAME_INTERCEPTOR);
  
          final String methodName = ViewMethod.SET_INTERCEPTOR.getName();
  
          final MethodId<G, Void> methodId = generatedType.getMethod(VOID_TYPE, methodName,
                  INTERCEPTOR_TYPE);
          final Code code = dexMaker.declare(methodId, PUBLIC);
  
          final Local<G> localThis = code.getThis(generatedType);
          final Local<Interceptor> localInterceptor = code.getParameter(0, INTERCEPTOR_TYPE);
          code.iput(interceptorField, localThis, localInterceptor);
          code.returnVoid();
      }
docs: Generates the {@link android.view.View#setMeasuredDimension(int, int)} method for
  the proxy class.