static void addFramesNavigationAd(JPanel parent) {
    if (!(parent.getLayout() instanceof BorderLayout)) {
      return;
    }
    String prev = getShortcutText(IdeActions.ACTION_PREVIOUS_OCCURENCE);
    String next = getShortcutText(IdeActions.ACTION_NEXT_OCCURENCE);
    String propKey = "XFramesView.AdPanel.SwitchFrames.enabled";
    if (PropertiesComponent.getInstance().getBoolean(propKey, true) && prev != null && next != null) {
      String message = XDebuggerBundle.message("debugger.switch.frames.from.anywhere.hint", prev, next);
      var hint = new MyAdPanel(message, p -> {
        parent.remove(p);
        parent.revalidate();
        PropertiesComponent.getInstance().setValue(propKey, false, true);
      });
      parent.add(hint, BorderLayout.SOUTH);
    }
  }
static void addFramesNavigationAd(JPanel parent)