class GenericXlsxFileCreatorService {

  public Workbook createWorkbook(
      @NotNull Collection<T> contentRows, @NotNull Collection<String> headlines, String sheetTitle)
      throws IllegalAccessException {
    Workbook workbook = new XSSFWorkbook();
    Sheet sheet = workbook.createSheet(sheetTitle);

    createHeadlines(sheet, headlines);
    fillOutSheet(workbook, sheet, contentRows);
    autosizeColumns(sheet, headlines.size());

    return workbook;
  }

}