Object (@NotNull String dataId) { if (PlatformCoreDataKeys.SELECTED_ITEMS.is(dataId)) { return ContainerUtil.map2Array(myItems, ServiceViewItem::getValue); } if (PlatformCoreDataKeys.SELECTED_ITEM.is(dataId)) { ServiceViewItem item = ContainerUtil.getOnlyItem(myItems); return item != null ? item.getValue() : null; } return null; }