class ReviewDateHeaderListTransformer {

    List<Object> transform() {
        final ArrayList<Object> objects = new ArrayList<Object>(kinoDtos);

        String currentYear = null;

        SortedMap<Integer, String> yearsToInsert = new TreeMap<>();
        int indexOfObjet = 0;
        for (Object object : objects) {
            String releaseDateYear = String.valueOf(getYearFromReviewDate(((KinoDto) object).getReview_date()));
            if (!releaseDateYear.equals(currentYear)) {
                yearsToInsert.put(indexOfObjet, releaseDateYear);
                currentYear = releaseDateYear;
            }
            indexOfObjet++;
        }

        int offset = 0;
        for (Integer index : yearsToInsert.keySet()) {
            String yearToInsert = yearsToInsert.get(index);
            objects.add(index + offset, yearToInsert);
            ++offset;
        }

        return objects;
    }

      ReviewDateHeaderListTransformer(Context context, List<KinoDto> kinoDtos);

}