JavaFile.builder(packageElement.getQualifiedName().toString(), typeSpec).skipJavaLangImports(true)
.build()
.writeTo(writer);
writer.close();
}
<BUG>private MethodSpec generateBindMethod(LifeCycleAwareInfo lifeCycleAwareInfo, TypeName objectGenericType) {
MethodSpec.Builder builder = MethodSpec.methodBuilder("bind")

.addModifiers(PUBLIC, STATIC)
.returns(void.class)</BUG>
.addParameter(ClassName.get(LifeCycleAwareCollector.class), "collector")

JavaFile.builder(packageElement.getQualifiedName().toString(), typeSpec).skipJavaLangImports(true)
.build()
.writeTo(writer);
writer.close();
}
private MethodSpec generateBindMethod(LifeCycleAwareInfo lifeCycleAwareInfo, TypeName objectGenericType) {
boolean implementsLifeCycleAware = implementsLifeCycleAware(ClassName.get(lifeCycleAwareInfo.element.asType()));
MethodSpec.Builder builder = MethodSpec.methodBuilder("bind").addModifiers(PUBLIC, STATIC);
String lifeCycleAwareVariableName;
boolean nestedObject;
if (implementsLifeCycleAware) {
builder = builder
.returns(objectGenericType)
