private boolean hasDuplicate(final File file) {
    final String path = file.getAbsolutePath();

    for (int i = 0; i < myWorkingCopyInfoModel.getSize(); i++) {
      final WorkingCopyInfo info = myWorkingCopyInfoModel.getElementAt(i);
      if (path.equals(info.getLocalPath())) {
        return true;
      }
    }
    return false;
  }
private boolean hasDuplicate(final File file)