static boolean isSourceLevelAccessible(@NotNull PsiElement context,
                                         @NotNull PsiClass psiClass,
                                         boolean pkgContext) {
    return isSourceLevelAccessible(context, psiClass, pkgContext, psiClass.getContainingClass());
  }
static boolean isSourceLevelAccessible(@NotNull PsiElement context,
                                         @NotNull PsiClass psiClass,
                                         boolean pkgContext)