PsiTypeItem[] (PsiType @NotNull [] types, @NotNull Project project) { PsiTypeItem[] result = new PsiTypeItem[types.length]; for (int i = 0; i < result.length; i++) { result [i] = new PsiTypeItem(types [i], project); } return result; }