PsiClassType (@NotNull PsiType componentType, @NotNull LanguageLevel languageLevel) { PsiClass arrayClass = getArrayClass(languageLevel); PsiTypeParameter[] typeParameters = arrayClass.getTypeParameters(); PsiSubstitutor substitutor = PsiSubstitutor.EMPTY; if (typeParameters.length == 1) { substitutor = substitutor.put(typeParameters[0], componentType); } return createType(arrayClass, substitutor); }