class ConvertRecord {

    public static void fillTodoCustomPropertyInfo(List<Todo> todos, List<PropertyWithValueAndId> customProperties, SetMultimap<Integer, Integer> todoCustomPropertyMap) {
        int nextPropertyId = 0;
        for(Todo todo : todos){
            if(todo.isSetCustomPropertyToValue()){
                for(Map.Entry<String, String> entry : todo.getCustomPropertyToValue().entrySet()){
                    customProperties.add(new PropertyWithValueAndId(nextPropertyId, entry.getKey(), entry.getValue()));
                    todoCustomPropertyMap.put(todo.getTodoId(), nextPropertyId);
                    nextPropertyId++;
                }
            }
        }
    }

    private  ConvertRecord();

}