/** * Builds the tree. * * @return The root {@link InvocationTreeElement} of the resulting tree. If no tree could be * built, e.g. when finding no root element <code>null</code> will be returned. */ public InvocationTreeElement build() { prepare(); tree = findRoot(); if (tree == null) { return null; } resolve(); sortChildren(tree); resolveSpanDetails(); return tree; }