code: private void addProxyDeathMethod(TypeSpec.Builder classBuilder, String deathMethod, String doc) {
          MethodSpec.Builder methodBuilder = MethodSpec.methodBuilder(deathMethod)
                  .addModifiers(Modifier.PUBLIC)
                  .returns(TypeName.VOID)
                  .addParameter(ClassName.get("android.os", "IBinder.DeathRecipient"), "deathRecipient")
                  .beginControlFlow("try")
                  .addStatement("mRemote." + deathMethod + "(deathRecipient, 0)")
                  .endControlFlow()
                  .beginControlFlow("catch ($T ignored)", Exception.class)
                  .endControlFlow()
                  .addJavadoc(doc);
          classBuilder.addMethod(methodBuilder.build());
      }
docs: Add proxy method that exposes the linkToDeath