private void showPreview() {
    myProcessor.show();
    if (myListPopup instanceof ListPopupImpl listPopup) {
      JList<?> list = listPopup.getList();
      T targetValue = ObjectUtils.tryCast(list.getSelectedValue(), myClass);
      if (targetValue != null) {
        update(targetValue);
      }
    }
  }
private void showPreview()