List<PropertyBean> (@NotNull JList<?> list, @Nullable Object value, int index) { //noinspection unchecked FileType fileType = myConverter.apply((T)value); if (fileType == null) return Collections.emptyList(); List<PropertyBean> result = new ArrayList<>(); result.add(new PropertyBean("FileType ID", fileType.getName(), true)); result.add(new PropertyBean("FileType Class", UiInspectorUtil.getClassPresentation(fileType), true)); return result; }