Component (JList<? extends T> list, @Nullable T value, int index, boolean selected, boolean focused) { SdkListItem item = value == null ? null : unwrap.apply(value); @SuppressWarnings("unchecked") JList<SdkItem> cast = (JList<SdkItem>)list; return SdkListPresenter.this.getListCellRendererComponent(cast, item, index, selected, focused); }