private static boolean hasInaccessibleGenerics(@NotNull PsiType type) {
    if (type instanceof PsiClassType) {
      return !ContainerUtil.and(((PsiClassType)type).getParameters(), x -> isAccessibleType(x));
    }
    return false;
  }
private static boolean hasInaccessibleGenerics(@NotNull PsiType type)