code: public boolean remove(String fileName) {
        writeLock.lock();
        try {
           return filenames.remove(fileName);
        } finally {
           writeLock.unlock();
        }
     }
docs: Removes the filename from the set if it exists
  @param fileName
  @return true if the set was mutated