public static boolean isMemberAccessibleAt(@NotNull PsiMember member, @NotNull PsiElement place) {
    VirtualFile virtualFile = PsiUtilCore.getVirtualFile(member);
    return (virtualFile == null || place.getResolveScope().contains(virtualFile)) && isAccessible(member, place, null);
  }
public static boolean isMemberAccessibleAt(@NotNull PsiMember member, @NotNull PsiElement place)