@Override
  public int compare(@NotNull VirtualFile file1, @NotNull VirtualFile file2) {
    int pos1 = myEntries.getInt(getFileRoot(file1));
    int pos2 = myEntries.getInt(getFileRoot(file2));
    return Integer.compare(pos2, pos1);
  }
@Override
  public int compare(@NotNull VirtualFile file1, @NotNull VirtualFile file2)