void (@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); } }