boolean (final TransferSupport support) { //todo new maven importing if (canImport(support)) { List<VirtualFile> pomFiles = new ArrayList<>(); final List<File> fileList = FileCopyPasteUtil.getFileList(support.getTransferable()); if (fileList == null) return false; MavenProjectsManager manager = MavenProjectsManager.getInstance(myProject); for (File file : fileList) { VirtualFile virtualFile = VfsUtil.findFileByIoFile(file, true); if (file.isFile() && virtualFile != null && MavenActionUtil.isMavenProjectFile(virtualFile) && !manager.isManagedFile(virtualFile)) { pomFiles.add(virtualFile); } } if (pomFiles.isEmpty()) { return false; } manager.addManagedFilesOrUnignore(pomFiles); return true; } return false; }