code: private void maybeWarnForInvalidDestructuring(
        NodeTraversal t, Node importNode, String importedNamespace) {
      checkArgument(importNode.getFirstChild().isDestructuringLhs(), importNode);
      ScriptDescription importedModule =
          rewriteState.scriptDescriptionsByGoogModuleNamespace.get(importedNamespace);
      if (importedModule == null) {
        // Don't know enough to give a good warning here.
        return;
      }
      if (importedModule.defaultExportRhs != null) {
        t.report(importNode, ILLEGAL_DESTRUCTURING_DEFAULT_EXPORT);
        return;
      }
      Node objPattern = importNode.getFirstFirstChild();
      for (Node key = objPattern.getFirstChild(); key != null; key = key.getNext()) {
        String exportName = key.getString();
        if (!importedModule.namedExports.contains(exportName)) {
          t.report(importNode, ILLEGAL_DESTRUCTURING_NOT_EXPORTED, exportName, importedNamespace);
        }
      }
    }
docs: by structuring the imports/exports in a consistent way.