code: public boolean isJDKInternalPackage(Module module, String pn) {
          if (module.isJDKUnsupported()) {
              // its exported APIs are unsupported
              return true;
          }
  
          return module.isJDK() && !module.isExported(pn);
      }
docs: Tests if the package is an internal package of the given module.