@NotNull
  private static SliceUsage createContainingFileNode(@NotNull Project project, @NotNull SliceUsage usage) {
    PsiElement element = usage.getElement();
    PsiFile file;
    if (element == null) {
      VirtualFile virtualFile = usage.getFile();
      file = virtualFile == null ? null : PsiManager.getInstance(project).findFile(virtualFile);
    }
    else {
      file = element.getContainingFile();
    }
    return LanguageSlicing.getProvider(Objects.requireNonNull(file)).createRootUsage(file, usage.params);
  }
@NotNull
  private static SliceUsage createContainingFileNode(@NotNull Project project, @NotNull SliceUsage usage)