public ElementsCollector(Messager messager, Types types, Elements elements) {
this.messager = messager;
this.types = types;
this.elements = elements;
}
<BUG>List<LifeCycleAwareInfo> createLifeCycleAwareElements(Set<? extends Element> lifeCycleAwareElements, Set<? extends Element> retainedObjectElements,
Set<? extends Element> eventsElements) {</BUG>
Map<Element, LifeCycleAwareInfo> elementsByClass = new HashMap<>();
for (Element element : lifeCycleAwareElements) {
<BUG>LifeCycleAwareInfo info = getLifeCycleAwareInfo(elementsByClass, element);
info.lifeCycleAwareElements.add((VariableElement) element);
}</BUG>
for (Element element : retainedObjectElements) {

public ElementsCollector(Messager messager, Types types, Elements elements) {
this.messager = messager;
this.types = types;
this.elements = elements;
}
List<LifeCycleAwareInfo> createLifeCycleAwareElements(Set<? extends Element> lifeCycleAwareElements,
Set<? extends Element> retainedObjectElements,
Set<? extends Element> eventsElements) {
Map<Element, LifeCycleAwareInfo> elementsByClass = new HashMap<>();
for (Element element : lifeCycleAwareElements) {
LifeCycleAwareInfo info = getLifeCycleAwareInfo(elementsByClass, element);
if (element instanceof VariableElement) {
