code: public void updateShownOptions(boolean showModeSwitch, boolean showAddKeyOption) {
  
          if (showModeSwitch != m_showModeSwitch) {
              m_upperLeftComponent.removeAllComponents();
              m_upperLeftComponent.addComponent(m_languageSwitch);
              if (showModeSwitch) {
                  m_upperLeftComponent.addComponent(m_modeSwitch);
              }
              m_upperLeftComponent.addComponent(m_filePathLabel);
              m_showModeSwitch = showModeSwitch;
          }
          if (showAddKeyOption != m_showAddKeyOption) {
              if (showAddKeyOption) {
                  m_optionsComponent.addComponent(m_lowerLeftComponent, 0, 1);
                  m_optionsComponent.addComponent(m_lowerRightComponent, 1, 1);
              } else {
                  m_optionsComponent.removeComponent(0, 1);
                  m_optionsComponent.removeComponent(1, 1);
              }
              m_showAddKeyOption = showAddKeyOption;
          }
      }
docs: Update which options are shown.
  @param showModeSwitch flag, indicating if the mode switch should be shown.
  @param showAddKeyOption flag, indicating if the "Add key" row should be shown.