function name = generateNewProfileName()
        % Generate a new unique profile name

%   Copyright 2023 The MathWorks, Inc.

            ProfileModels = pe.toolstrip.doGetProfileModels;

            names = cell(length(ProfileModels), 1);
            for idx = 1 : length(ProfileModels)
                m = ProfileModels(idx);
                profile = systemcomposer.internal.profile.Profile.getProfile(m);
                names{idx} = profile.getName;
            end

            name = 'Profile';
            name = pe.toolstrip.uniquifyName(name, names);
end
