docs: private static DebuggableScript[] getAllFunctions
              (DebuggableScript function) {
          ObjArray functions = new ObjArray();
          collectFunctions_r(function, functions);
          DebuggableScript[] result = new DebuggableScript[functions.size()];
          functions.toArray(result);
          return result;
      }