code: @SuppressWarnings("null")
      private void setHideSwitchButton(CmsSessionInfo session) {
  
          boolean visible = session != null;
  
          if (visible) {
              visible = !OpenCms.getSessionManager().getSessionInfo(CmsVaadinUtils.getRequest()).getSessionId().equals(
                  session.getSessionId());
          }
          m_okButton.setVisible(visible);
  
      }
docs: Hides the switch user button.<p>
  
  @param session to be checked