UsageInfo[] (UsageInfo[] usages, Set<? super UsageInfo> suggestToMakeStatic) { ArrayList<UsageInfo> result = new ArrayList<>(); for (UsageInfo usage : usages) { if (usage instanceof ChainedCallUsageInfo) { suggestToMakeStatic.add(usage); } else if (!(usage instanceof OverridingMethodUsageInfo)) { result.add(usage); } } return result.toArray(UsageInfo.EMPTY_ARRAY); }