public @Nullable VirtualFile getRoot(int row) {
    int head = getVisibleGraph().getRowInfo(row).getOneOfHeads();
    return myDataPack.getRefsModel().rootAtHead(head);
  }
public @Nullable VirtualFile getRoot(int row)