code: @Override // defined by AbstractDoclet
      protected void generateModuleFiles() throws DocletException {
          if (configuration.showModules) {
              if (configuration.frames  && configuration.modules.size() > 1) {
                  ModuleIndexFrameWriter.generate(configuration);
              }
              ModuleElement prevModule = null, nextModule;
              List<ModuleElement> mdles = new ArrayList<>(configuration.modulePackages.keySet());
              int i = 0;
              for (ModuleElement mdle : mdles) {
                  if (configuration.frames && configuration.modules.size() > 1) {
                      ModulePackageIndexFrameWriter.generate(configuration, mdle);
                      ModuleFrameWriter.generate(configuration, mdle);
                  }
                  nextModule = (i + 1 < mdles.size()) ? mdles.get(i + 1) : null;
                  AbstractBuilder moduleSummaryBuilder =
                          configuration.getBuilderFactory().getModuleSummaryBuilder(
                          mdle, prevModule, nextModule);
                  moduleSummaryBuilder.build();
                  prevModule = mdle;
                  i++;
              }
          }
      }
docs: {@inheritDoc}