'Add entries to the dictionary of columns to adjustments for the given
sid and the given quarter.
Parameters
col_to_overwrites : dict [column_name -> list of ArrayAdjustment]
A dictionary mapping column names to all overwrites for those
columns.
next_qtr_start_idx : int
The index of the first day of the next quarter in the calendar
dates.
last_per_qtr : pd.DataFrame
A DataFrame with a column MultiIndex of [self.estimates.columns,
normalized_quarters, sid] that allows easily getting the timeline
of estimates for a particular sid for a particular quarter; this
is particularly useful for getting adjustments for \'next\'
estimates.
quarters_with_estimates_for_sid : np.array
An array of all quarters for which there are estimates for the
given sid.
requested_quarter : float
The quarter for which the overwrite should be created.
sid : int
The sid for which to create overwrites.
sid_idx : int
The index of the sid in `assets`.
columns : list of BoundColumn
The columns for which to create overwrites.'

def create_overwrites_for_quarter(self, col_to_overwrites, next_qtr_start_idx, last_per_qtr, quarters_with_estimates_for_sid, requested_quarter, sid, sid_idx, columns):

    for col in columns:
        column_name = self.name_map[col.name]
        if (column_name not in col_to_overwrites):
            col_to_overwrites[column_name] = {}
        if (requested_quarter in quarters_with_estimates_for_sid):
            adjs = self.create_overwrite_for_estimate(col, column_name, last_per_qtr, next_qtr_start_idx, requested_quarter, sid, sid_idx)
            add_new_adjustments(col_to_overwrites, adjs, column_name, next_qtr_start_idx)
        else:
            adjs = [self.overwrite_with_null(col, next_qtr_start_idx, sid_idx)]
            add_new_adjustments(col_to_overwrites, adjs, column_name, next_qtr_start_idx)
