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: icatb_getUIlistbox.m
    path of file: ./repos/gift/GroupICAT/icatb/icatb_display_functions
    
    the code of the file until where you have to start completion: function [listHandle] = icatb_getUIlistbox(varargin)
% function used to plot listbox user control on figure
% Inputs: must be in pairs
% Output: handle of the control

% defaults
visible = 'on';
enable = 'on';
Tag = 'listbox';
label = '';
controlCallback = '';
fontWeight = 'normal';
maxEntries = 1;

% loop over number of arguments
for ii = 1:2:nargin
    if strcmp(lower(varargin{ii}), 'handles')

    
function [listHandle] = icatb_getUIlistbox(varargin)
% function used to plot listbox user control on figure
% Inputs: must be in pairs
% Output: handle of the control

% defaults
visible = 'on';
enable = 'on';
Tag = 'listbox';
label = '';
controlCallback = '';
fontWeight = 'normal';
maxEntries = 1;

% loop over number of arguments
for ii = 1:2:nargin
    if strcmp(lower(varargin{ii}), 'handles')
        Handle = varargin{ii + 1};
    elseif strcmp(lower(varargin{ii}), 'visible')
        visible = varargin{ii + 1};
    elseif strcmp(lower(varargin{ii}), 'enable')
        enable = varargin{ii + 1};
    elseif strcmp(lower(varargin{ii}), 'units')
        units = varargin{ii + 1};
    elseif strcmp(lower(varargin{ii}), 'position')
        pos = varargin{ii + 1};
    elseif strcmp(lower(varargin{ii}), 'tag')
        Tag = varargin{ii + 1};
    elseif strcmp(lower(varargin{ii}), 'label')
        label = varargin{ii + 1};
    elseif strcmp(lower(varargin{ii}), 'callback')
        controlCallback = varargin{ii + 1};
    elseif strcmp(lower(varargin{ii}), 'max')
        maxEntries = varargin{ii + 1};
    elseif strcmp(lower(varargin{ii}), 'userdata')
        userData = varargin{ii + 1};
    end