in dataenum-processor/src/main/java/com/spotify/dataenum/processor/generator/method/MethodMethods.java [62:70]
public static CodeBlock codeBlockFrom(ExecutableElement el, Trees trees) {
final MethodTree methodTree = MethodLookup.lookupTree(el, trees);
return methodTree
.getBody()
.getStatements()
.stream()
.map(x -> CodeBlock.of(x.toString()))
.reduce(CodeBlock.of(""), (a, b) -> a.toBuilder().add(b).build());
}