DnDDragStartBean (DnDAction action, @NotNull Point dragOrigin) { PsiElement[] psiElements = getSelectedPSIElements(); TreePath[] paths = getSelectionPaths(); return new DnDDragStartBean(new TransferableWrapper() { @Override public List<File> asFileList() { return PsiCopyPasteManager.asFileList(psiElements); } @Override public TreePath @Nullable [] getTreePaths() { return paths; } @Override public TreeNode[] getTreeNodes() { return TreePathUtil.toTreeNodes(getTreePaths()); } @Override public PsiElement[] getPsiElements() { return psiElements; } }); }