You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: MsgHelper.m
    path of file: ./repos/MatGPT/helpers
    
    the code of the file until where you have to start completion: classdef MsgHelper
    %MSGHELPER Collection of static methods for message processing
    %   MsgHelper has multiple static methods that can be used for the
    %   message processing used by MatGPT

    methods (Access=public,Static)

        function [contextwindow,cutoff] = getModelDetails(modelName)
            % provide context window for a given model
            % supported models
            models = [ ...
                struct('name','gpt-3.5-turbo','attributes',struct('contextwindow',4096,'cutoff','Sep 2021'),'legacy',false), ...
                struct('name','gpt-3.5-tu
    
function fitted = fitContextWindow(model,content,max_tokens)
            % FITCONTEXTWINDOW - makes sure content fits the context window
            % update the context window value
            [cw,~] = MsgHelper.getModelDetails(model);
            % subtract the max tokens to derive the available window
            max_length = cw - max_tokens;
            % 1 token ~= 4 chars in English
            max_length = max_length * 2; % be conservative
            % if the content fits within the context window
            if strlength(content) < max_length
                % do nothing
                fitted = content;
            else
                % truncate
                truncated = char(content);
                truncated = string(truncated(1:max_length));
                % drop the last word
                splitted = split(truncated,whitespacePattern);
                fitted = erase(truncated,splitted(end