void (@NotNull ConfigurableUsageTarget usageTarget) { final String descriptiveName = usageTarget.getLongDescriptiveName(); synchronized (myHistory) { final Set<Map.Entry<ConfigurableUsageTarget, String>> entries = myHistory.entrySet(); entries.removeIf(entry -> entry.getValue().equals(descriptiveName)); myHistory.put(usageTarget, descriptiveName); if (myHistory.size() > 15) { myHistory.removeFirst(); } } }