void (final DropTargetDropEvent event) { event.acceptDrop(event.getDropAction()); final List<File> fileList = FileCopyPasteUtil.getFileList(event.getTransferable()); if (fileList == null) return; final List<VirtualFile> files = new ArrayList<>(); final LocalFileSystem fileSystem = LocalFileSystem.getInstance(); for (File file : fileList) { final VirtualFile vFile = fileSystem.findFileByIoFile(file); if (vFile != null && vFile.exists() && target.getDescriptor().isFileVisible(vFile, target.isHiddenShown())) { files.add(vFile); } } if (files.size() > 0) { target.dropFiles(files); } }