UsageInfo[] (UsageInfo[] usages) { ArrayList<UsageInfo> result = new ArrayList<>(); for (UsageInfo usage : usages) { if (!(usage instanceof InternalUsageInfo)) { result.add(usage); } } return result.toArray(UsageInfo.EMPTY_ARRAY); }