code: private static boolean isWebpackRequireEnsureCallback(Node fnc) {
      checkArgument(fnc.isFunction());
      if (fnc.getParent() == null) {
        return false;
      }
  
      Node callParent = fnc.getParent();
      if (!callParent.isCall()) {
        return false;
      }
  
      if (!(callParent.hasChildren()
          && callParent.getFirstChild().isGetProp()
          && callParent.getFirstFirstChild().isCall())) {
        return false;
      }
      Node callParentTarget = callParent.getFirstFirstChild().getFirstChild();
  
      if (callParentTarget.matchesQualifiedName(WEBPACK_REQUIRE + ".e")
          && callParent.getFirstChild().getSecondChild().isString()
          && callParent.getFirstChild().getSecondChild().getString().equals("then")) {
        return true;
      } else if (callParentTarget.matchesQualifiedName("Promise.all")
          && callParentTarget.getNext() != null
          && callParentTarget.getNext().isArrayLit()) {
        boolean allElementsAreDynamicImports = false;
        for (Node arrayItem = callParentTarget.getNext().getFirstChild();
            arrayItem != null;
            arrayItem = arrayItem.getNext()) {
          if (!(arrayItem.isCall()
              && arrayItem.hasTwoChildren()
              && arrayItem.getFirstChild().matchesQualifiedName(WEBPACK_REQUIRE + ".e"))) {
            return false;
          }
          allElementsAreDynamicImports = true;
        }
        return allElementsAreDynamicImports;
      }
      return false;
    }
docs: Recognizes __webpack_require__ calls that are the .then callback of a __webpack_require__.e
  call. Example:
  
  <ul>
  <li>__webpack_require__.e(0).then(function() { return __webpack_require__(4); })
  <li>Promise.all([__webpack_require__.e(0)]).then(function() { return
  __webpack_require__(4);})
  </ul>