Result[] (final List<? extends PsiClass> classes) { Result[] results = new Result[classes.size()]; int i = 0; for (final PsiClass aClass : classes) { results[i++] = new JavaPsiElementResult(aClass); } return results; }