boolean (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; }