docs: private long getEndTime(ISuite suite, IInvokedMethod method)
      {
          // Find the latest end time for all tests in the suite.
          for (Map.Entry<String, ISuiteResult> entry : suite.getResults().entrySet())
          {
              ITestContext testContext = entry.getValue().getTestContext();
              for (ITestNGMethod m : testContext.getAllTestMethods())
              {
                  if (method == m)
                  {
                      return testContext.getEndDate().getTime();
                  }
              }
              // If we can't find a matching test method it must be a configuration method.
              for (ITestNGMethod m : testContext.getPassedConfigurations().getAllMethods())
              {
                  if (method == m)
                  {
                      return testContext.getEndDate().getTime();
                  }
              }
              for (ITestNGMethod m : testContext.getFailedConfigurations().getAllMethods())
              {
                  if (method == m)
                  {
                      return testContext.getEndDate().getTime();
                  }
              }
          }
          throw new IllegalStateException("Could not find matching end time.");
      }