     function [isModel, modelOrDDName] = isModelContext(fileName)
            % Identify model or dictionary context and model or dictionary
            % name

%   Copyright 2022-2023 The MathWorks, Inc.

            [~,modelOrDDName,ext] = fileparts(fileName);
            isModel = ~strcmpi(ext, '.sldd') && ~strcmpi(ext, '.mldatx') && ...
                ~strcmpi(ext, '.fmu');
        end
