private static @Nullable XDebuggerFrameListRenderer getFrameListRenderer(@NotNull JList list, @NotNull Point mouseLocation) {
      var renderer = list.getCellRenderer();
      var index = list.locationToIndex(mouseLocation);
      if (index < 0 || index >= list.getModel().getSize()) {
        return null;
      }
      var value = list.getModel().getElementAt(index);
      @SuppressWarnings("unchecked")
      var component = ObjectUtils.tryCast(
        renderer.getListCellRendererComponent(list, value, index, false, false),
        JComponent.class
      );
      if (component == null) {
        return null;
      }
      return ContainerUtil.getFirstItem(
        ComponentUtil.findComponentsOfType(component, XDebuggerFrameListRenderer.class)
      );
    }
private static @Nullable XDebuggerFrameListRenderer getFrameListRenderer(@NotNull JList list, @NotNull Point mouseLocation)