void (@NotNull String name) { for (int i = 0; i < list.getItemsCount(); i++) { T item = list.getItemAt(i); if (item != null && name.equalsIgnoreCase(toNameConverter.fun(item))) { list.setSelectedIndex(i); } } }