private void acceptOnEDT(@NotNull TreeVisitor visitor, @NotNull Runnable task) {
    myAsyncTreeModel.accept(visitor).onProcessed(path -> myAsyncTreeModel.onValidThread(task));
  }
private void acceptOnEDT(@NotNull TreeVisitor visitor, @NotNull Runnable task)