<BUG>codeBlock.addStatement("Class rawType = type.getRawType()");codeBlock.add("\n");codeBlock.addStatement("TypeAdapterLoader typeAdapterLoader = mPackagePrivateLoaders.get(rawType.getName())");codeBlock.beginControlFlow("if (typeAdapterLoader != null)");codeBlock.addStatement("return typeAdapterLoader.create(gson, type)");codeBlock.endControlFlow();codeBlock.add("\n");codeBlock.addStatement("return null");</BUG><CONTEXT>.addModifiers(Modifier.PUBLIC).returns(TypeAdapter.class).addParameter(Gson.class, "gson").addParameter(TypeToken.class, "type");CodeBlock.Builder codeBlock = CodeBlock.builder();<extra_id_0>createMethod.addCode(codeBlock.build());</CONTEXT>
codeBlock.beginControlFlow("for (int i = 0; i < mPackagePrivateLoaders.length; i++)");codeBlock.addStatement("TypeAdapter typeAdapter = mPackagePrivateLoaders[i].create(gson, type)");codeBlock.beginControlFlow("if (typeAdapter != null)");codeBlock.addStatement("return typeAdapter");codeBlock.addStatement("return null");