@Nullable
  public static @Nls String checkPsiTypeUseInContext(@NotNull PsiType type, @NotNull PsiElement context) {
    if (type instanceof PsiPrimitiveType) return null;
    if (type instanceof PsiArrayType) return checkPsiTypeUseInContext(((PsiArrayType) type).getComponentType(), context);
    if (PsiUtil.resolveClassInType(type) != null) return null;
    if (type instanceof PsiClassType) return checkClassType((PsiClassType)type, context);
    return invalidJavaTypeMessage();
  }
@Nullable
  public static @Nls String checkPsiTypeUseInContext(@NotNull PsiType type, @NotNull PsiElement context)