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: gui_brainstorm.m
    path of file: ./repos/brainstorm3/toolbox/gui
    
    the code of the file until where you have to start completion: function varargout = gui_brainstorm( varargin )
% GUI_BRAINSTORM: Main Brainstorm window.
%
% USAGE:      GUI = gui_brainstorm('CreateWindow');
%                   gui_brainstorm('SetSelectedTab', TabName, isAutoSelect=1)
%                   gui_brainstorm('ShowToolTab',    TabName)
%       iProtocol = gui_brainstorm('Creat
    
function ShowFilterMenu()
        % Show popup
        ShowPopup(jPopupFilter, jTextFilter, 0, -jPopupFilter.getPreferredSize().getHeight()-1);
        % Set search border visible
        jTextFilter.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color(0.5,0.5,0.5)));
        jTextFilter.grabFocus();
    end

    %% ===== TABS: SHOW POPUP MENU =====
    function ShowTabMenu()
        % Create popup
        jPopupTab = java_create('javax.swing.JPopupMenu');
        % List possible tabs
        panelList = {'Record', 'Filter', 'Surface', 'Scout', 'Cluster', 'Coordinates', 'Dipinfo', 'iEEG', 'Command', 'Spikes'};
        panelRemove = {};
        % List missing tabs
        for iPanel = 1:length(GlobalData.Program.GUI.panels)
            iFound = find(strcmpi(panelList, get(GlobalData.Program.GUI.panels(iPanel), 'name')));
            if ~isempty(iFound)
                panelRemove{end