UsageInfo[] (Project project, PsiMigration migration, String qName, GlobalSearchScope searchScope) { PsiClass[] classes = findOrCreateClass(project, migration, qName); List<UsageInfo> usages = new ArrayList<>(); for (PsiClass aClass : classes) { usages.addAll(findRefs(aClass, searchScope)); } return usages.toArray(UsageInfo.EMPTY_ARRAY); }