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: panel_openmeeg.m
    path of file: ./repos/brainstorm3/toolbox/forward
    
    the code of the file until where you have to start completion: function varargout = panel_openmeeg(varargin)
% PANEL_OPENMEEG: Options for OpenMEEG BEM (GUI).
% 
% USAGE:  bstPanelNew = panel_openmeeg('CreatePanel', OPTIONS)           : Call from the interactive interface
%         bstPanelNew = panel_openmeeg('CreatePanel', sProcess, sFiles) 
    
function ButtonOk_Callback(varargin)       
        % Release mutex and keep the panel opened
        bst_mutex('release', panelName);
    end

%% ===== UPDATE PANEL =====
    function UpdatePanel(varargin)
        % OpenMEEG options
        isAdjoint = jCheckAdjoint.isSelected();
        jCheckAdaptative.setEnabled(~isAdjoint);
        if isAdjoint
            jCheckAdaptative.setSelected(1);
        end
        % Split in blocks
        isSplit = jCheckSplit.isSelected();
        jTextSplit.setEnabled(isSplit);
        % BEM Layers
        if isempty(nVertices)
            return;
        end
        nv = [];
        nf = [];
        for j = 1:nLayers
            isSelLayer(j) = jCheckLayer(j).isSelected();
            jLabelLayer(j).setEnabled(isSelLayer(j));
            jTextCond(j).setEnabled(isSelLayer(j));
            if isSelLayer(j)
                nv(end