public static boolean isArrayClass(@Nullable PsiElement psiClass) {
    return psiClass instanceof PsiClass && JavaPsiFacade.getElementFactory(psiClass.getProject()).isArrayClass((PsiClass)psiClass);
  }
public static boolean isArrayClass(@Nullable PsiElement psiClass)