code: public List<DefaultIssue> loadClosedIssues(String componentUuid) {
      if (closedIssueMaxAge == 0) {
        return emptyList();
      }
  
      Date date = new Date(system2.now());
      long closeDateAfter = date.toInstant()
        .minus(closedIssueMaxAge, ChronoUnit.DAYS)
        .truncatedTo(ChronoUnit.DAYS)
        .toEpochMilli();
      try (DbSession dbSession = dbClient.openSession(false)) {
        return loadClosedIssues(dbSession, componentUuid, closeDateAfter);
      }
    }
docs: Load closed issues for the specified Component, which have at least one line diff in changelog AND are
  neither hotspots nor manual vulnerabilities.
  <p>
  Closed issues do not have a line number in DB (it is unset when the issue is closed), this method
  returns {@link DefaultIssue} objects which line number is populated from the most recent diff logging
  the removal of the line. Closed issues which do not have such diff are not loaded.
  <p>
  To not depend on purge configuration of closed issues, only issues which close date is less than 30 days ago at
  00H00 are returned.