You call `element.getFunctionLiteral()` **a lot** in this function. Why not extract it to a named variable?