@Override
    public void fileDeleted(@NotNull VirtualFileEvent event) {
      VirtualFile file = event.getFile();
      VirtualFile root = thumbnailView.getRoot();
      if (root != null && VfsUtilCore.isAncestor(file, root, false)) {
        refresh();
      }
      if (list != null) {
        ((DefaultListModel<?>)list.getModel()).removeElement(file);
      }
    }
@Override
    public void fileDeleted(@NotNull VirtualFileEvent event)