code: public Reportable generateReports() {
          Trends trends = null;
  
          try {
              // first copy static resources so ErrorPage is displayed properly
              copyStaticResources();
  
              // create directory for embeddings before files are generated
              createEmbeddingsDirectory();
  
              // add metadata info sourced from files
              reportParser.parseClassificationsFiles(configuration.getClassificationFiles());
  
              // parse json files for results
              List<Feature> features = reportParser.parseJsonFiles(jsonFiles);
              reportResult = new ReportResult(features, configuration);
              Reportable reportable = reportResult.getFeatureReport();
  
              if (configuration.isTrendsAvailable()) {
                  // prepare data required by generators, collect generators and generate pages
                  trends = updateAndSaveTrends(reportable);
              }
  
              // Collect and generate pages in a single pass
              generatePages(trends);
  
              return reportable;
  
              // whatever happens we want to provide at least error page instead of incomplete report or exception
          } catch (Exception e) {
              generateErrorPage(e);
              // update trends so there is information in history that the build failed
  
              // if trends was not created then something went wrong
              // and information about build failure should be saved
              if (!wasTrendsFileSaved && configuration.isTrendsAvailable()) {
                  Reportable reportable = new EmptyReportable();
                  updateAndSaveTrends(reportable);
              }
  
              // something went wrong, don't pass result that might be incomplete
              return null;
          }
      }
docs: Parses provided files and generates the report. When generating process fails
  report with information about error is provided.
  @return stats for the generated report