@TestOnly
  public static void invoke(@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file, @NotNull Surrounder surrounder) {
    assert ApplicationManager.getApplication().isUnitTestMode();
    assert EditorModificationUtil.checkModificationAllowed(editor);
    assert !(file instanceof PsiCompiledElement);

    Map<Surrounder, PsiElement[]> surrounders = computeSurrounders(editor, file);
    StreamEx.ofValues(surrounders, s -> s.getClass().equals(surrounder.getClass()))
      .findFirst()
      .ifPresent(elements -> doSurround(project, editor, surrounder, elements));
  }
@TestOnly
  public static void invoke(@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file, @NotNull Surrounder surrounder)