private @NotNull Collection<PsiFileSystemItem> getContextByFile(@NotNull PsiFile file) {
    final PsiElement context = file.getContext();
    if (context != null) file = context.getContainingFile();

    Collection<PsiFileSystemItem> folders = getIncludingFileContexts(file);
    if (folders != null) return folders;

    return getContextByFileSystemItem(file.getOriginalFile());
  }
private @NotNull Collection<PsiFileSystemItem> getContextByFile(@NotNull PsiFile file)