/**
  * Search the top-level functions defined in the given compilation unit for the entry point.
  *
  * @param element the compilation unit to be searched
  * @return the entry point that was found, or {@code null} if the compilation unit does not define
  *     an entry point
  */
 private FunctionElement findEntryPoint(CompilationUnitElementImpl element) {
   for (FunctionElement function : element.getFunctions()) {
     if (function.getName().equals(ENTRY_POINT_NAME)) {
       return function;
     }
   }
   return null;
 }