void (@NotNull T t) { List<String> values = myPropertiesComponent.getList(getLRUKey()); List<String> lastUsed = new ArrayList<>(LRU_ITEMS); lastUsed.add(getStorageId(t)); if (values != null) { for (String value : values) { if (!lastUsed.contains(value)) { lastUsed.add(value); } if (lastUsed.size() == LRU_ITEMS) { break; } } } myPropertiesComponent.setList(getLRUKey(), lastUsed); }