private boolean isPendingAdd(final VirtualFile dir) {
    for (AddedFileInfo i : myAddedFiles) {
      if (Comparing.equal(i.myDir, dir.getParent()) && i.myName.equals(dir.getName())) {
        return true;
      }
    }
    return false;
  }
private boolean isPendingAdd(final VirtualFile dir)