List<RecentItem> (@NotNull XAttachHost host, @NotNull Project project) { Map<XAttachHost, LinkedHashSet<RecentItem>> recentItems = project.getUserData(RECENT_ITEMS_KEY); return recentItems == null || !recentItems.containsKey(host) ? Collections.emptyList() : List.copyOf(recentItems.get(host)); }