Set<UsageInfo> (@NotNull UsageView usageView) { Set<Usage> excludedUsages = usageView.getExcludedUsages(); Set<UsageInfo> usageInfos = new LinkedHashSet<>(); for (Usage usage : usageView.getUsages()) { if (usage instanceof UsageInfo2UsageAdapter && !excludedUsages.contains(usage)) { UsageInfo usageInfo = ((UsageInfo2UsageAdapter)usage).getUsageInfo(); usageInfos.add(usageInfo); } } return usageInfos; }